home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / SQL and Data Base / Logic Works ERwin 3.5 / data.1 / ERTMPL32.DLL / RCDATA / 537 < prev    next >
Unknown  |  1998-01-30  |  14.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% gt2 Kopftext: 'ForEachAtt' default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 6f 72 45 61 63 68 41 | 74 74 00 2f 00 25 46 6f |ForEachA|tt./.%Fo|
|00000010| 72 45 61 63 68 41 74 74 | 28 29 00 42 61 73 69 63 |rEachAtt|().Basic|
|00000020| 20 53 79 6e 74 61 78 3a | 0d 0a 25 46 6f 72 45 61 | Syntax:|..%ForEa|
|00000030| 63 68 41 74 74 28 29 20 | 7b 0d 0a 20 20 20 20 3c |chAtt() |{.. <|
|00000040| 6d 61 63 72 6f 20 63 6f | 64 65 3e 0d 0a 7d 0d 0a |macro co|de>..}..|
|00000050| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|00000060| 78 61 6d 70 6c 65 3a 0d | 0a 25 46 6f 72 45 61 63 |xample:.|.%ForEac|
|00000070| 68 41 74 74 28 29 20 7b | 0d 0a 20 20 25 41 74 74 |hAtt() {|.. %Att|
|00000080| 46 69 65 6c 64 4e 61 6d | 65 0d 0a 7d 0d 0a 45 78 |FieldNam|e..}..Ex|
|00000090| 70 61 6e 73 69 6f 6e 3a | 0d 0a 72 65 6e 74 69 6e |pansion:|..rentin|
|000000a0| 67 5f 63 75 73 74 6f 6d | 65 72 0d 0a 6d 61 73 74 |g_custom|er..mast|
|000000b0| 65 72 5f 6e 75 6d 62 65 | 72 0d 0a 6d 6f 76 69 65 |er_numbe|r..movie|
|000000c0| 5f 63 6f 70 79 5f 6e 75 | 6d 62 65 72 0d 0a 72 65 |_copy_nu|mber..re|
|000000d0| 6e 74 61 6c 5f 72 65 63 | 6f 72 64 5f 64 61 74 65 |ntal_rec|ord_date|
|000000e0| 0d 0a 72 65 6e 74 61 6c | 5f 64 61 74 65 0d 0a 64 |..rental|_date..d|
|000000f0| 75 65 5f 64 61 74 65 0d | 0a 72 65 6e 74 61 6c 5f |ue_date.|.rental_|
|00000100| 73 74 61 74 75 73 0d 0a | 70 61 79 6d 65 6e 74 5f |status..|payment_|
|00000110| 61 6d 6f 75 6e 74 0d 0a | 70 61 79 6d 65 6e 74 5f |amount..|payment_|
|00000120| 64 61 74 65 0d 0a 70 61 | 79 6d 65 6e 74 5f 73 74 |date..pa|yment_st|
|00000130| 61 74 75 73 0d 0a 6f 76 | 65 72 64 75 65 5f 63 68 |atus..ov|erdue_ch|
|00000140| 61 72 67 65 0d 0a 0d 0a | 46 75 6c 6c 20 53 79 6e |arge....|Full Syn|
|00000150| 74 61 78 3a 0d 0a 25 46 | 6f 72 45 61 63 68 41 74 |tax:..%F|orEachAt|
|00000160| 74 28 3c 74 61 62 6c 65 | 3e 2c 3c 73 65 70 61 72 |t(<table|>,<separ|
|00000170| 61 74 6f 72 3e 29 20 7b | 0d 0a 20 20 20 20 3c 6d |ator>) {|.. <m|
|00000180| 61 63 72 6f 20 63 6f 64 | 65 3e 0d 0a 7d 0d 0a 0d |acro cod|e>..}...|
|00000190| 0a 46 75 6c 6c 20 53 79 | 6e 74 61 78 20 45 78 61 |.Full Sy|ntax Exa|
|000001a0| 6d 70 6c 65 3a 0d 0a 25 | 46 6f 72 45 61 63 68 41 |mple:..%|ForEachA|
|000001b0| 74 74 28 50 61 72 65 6e | 74 2c 20 22 2c 20 22 29 |tt(Paren|t, ", ")|
|000001c0| 20 7b 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 7d | {%AttFi|eldName}|
|000001d0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 6d 61 |..Expans|ion:..ma|
|000001e0| 73 74 65 72 5f 6e 75 6d | 62 65 72 2c 20 6d 6f 76 |ster_num|ber, mov|
|000001f0| 69 65 5f 63 6f 70 79 5f | 6e 75 6d 62 65 72 2c 20 |ie_copy_|number, |
|00000200| 67 65 6e 65 72 61 6c 5f | 63 6f 6e 64 69 74 69 6f |general_|conditio|
|00000210| 6e 0d 0a 0d 0a 55 73 61 | 67 65 3a 0d 0a 61 6e 20 |n....Usa|ge:..an |
|00000220| 65 6e 74 69 74 79 20 6d | 75 73 74 20 62 65 20 69 |entity m|ust be i|
|00000230| 6e 20 73 63 6f 70 65 0d | 0a 3c 74 61 62 6c 65 3e |n scope.|.<table>|
|00000240| 20 63 61 6e 20 62 65 20 | 50 61 72 65 6e 74 20 6f | can be |Parent o|
|00000250| 72 20 43 68 69 6c 64 20 | 28 69 66 20 61 20 72 65 |r Child |(if a re|
|00000260| 6c 61 74 69 6f 6e 73 68 | 69 70 20 69 73 20 69 6e |lationsh|ip is in|
|00000270| 20 73 63 6f 70 65 29 2c | 20 6f 72 20 65 6d 70 74 | scope),| or empt|
|00000280| 79 0d 0a 3c 73 65 70 61 | 72 61 74 6f 72 3e 20 69 |y..<sepa|rator> i|
|00000290| 73 20 6f 70 74 69 6f 6e | 61 6c 00 25 46 6f 72 45 |s option|al.%ForE|
|000002a0| 61 63 68 41 74 74 28 29 | 20 7b 0d 0a 7d 00 46 6f |achAtt()| {..}.Fo|
|000002b0| 72 45 61 63 68 46 4b 41 | 74 74 00 30 00 25 46 6f |rEachFKA|tt.0.%Fo|
|000002c0| 72 45 61 63 68 46 4b 41 | 74 74 28 29 00 42 61 73 |rEachFKA|tt().Bas|
|000002d0| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 46 6f 72 |ic Synta|x:..%For|
|000002e0| 45 61 63 68 46 4b 41 74 | 74 28 29 20 7b 0d 0a 20 |EachFKAt|t() {.. |
|000002f0| 20 20 20 3c 6d 61 63 72 | 6f 20 63 6f 64 65 3e 0d | <macr|o code>.|
|00000300| 0a 7d 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |.}....Ba|sic Synt|
|00000310| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|00000320| 72 45 61 63 68 46 4b 41 | 74 74 28 29 20 7b 0d 0a |rEachFKA|tt() {..|
|00000330| 20 20 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 0d | %AttFi|eldName.|
|00000340| 0a 7d 0d 0a 45 78 70 61 | 6e 73 69 6f 6e 3a 0d 0a |.}..Expa|nsion:..|
|00000350| 6d 61 73 74 65 72 5f 6e | 75 6d 62 65 72 0d 0a 6d |master_n|umber..m|
|00000360| 6f 76 69 65 5f 63 6f 70 | 79 5f 6e 75 6d 62 65 72 |ovie_cop|y_number|
|00000370| 0d 0a 0d 0a 46 75 6c 6c | 20 53 79 6e 74 61 78 3a |....Full| Syntax:|
|00000380| 0d 0a 25 46 6f 72 45 61 | 63 68 46 4b 41 74 74 28 |..%ForEa|chFKAtt(|
|00000390| 3c 73 65 70 61 72 61 74 | 6f 72 3e 29 20 7b 0d 0a |<separat|or>) {..|
|000003a0| 20 20 20 20 3c 6d 61 63 | 72 6f 20 63 6f 64 65 3e | <mac|ro code>|
|000003b0| 0d 0a 7d 0d 0a 0d 0a 46 | 75 6c 6c 20 53 79 6e 74 |..}....F|ull Synt|
|000003c0| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|000003d0| 72 45 61 63 68 46 4b 41 | 74 74 28 22 2c 20 22 29 |rEachFKA|tt(", ")|
|000003e0| 20 7b 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 7d | {%AttFi|eldName}|
|000003f0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 6d 61 |..Expans|ion:..ma|
|00000400| 73 74 65 72 5f 6e 75 6d | 62 65 72 2c 20 6d 6f 76 |ster_num|ber, mov|
|00000410| 69 65 5f 63 6f 70 79 5f | 6e 75 6d 62 65 72 0d 0a |ie_copy_|number..|
|00000420| 0d 0a 55 73 61 67 65 3a | 0d 0a 61 20 72 65 6c 61 |..Usage:|..a rela|
|00000430| 74 69 6f 6e 73 68 69 70 | 20 6d 75 73 74 20 62 65 |tionship| must be|
|00000440| 20 69 6e 20 73 63 6f 70 | 65 0d 0a 3c 73 65 70 61 | in scop|e..<sepa|
|00000450| 72 61 74 6f 72 3e 20 69 | 73 20 6f 70 74 69 6f 6e |rator> i|s option|
|00000460| 61 6c 00 25 46 6f 72 45 | 61 63 68 46 4b 41 74 74 |al.%ForE|achFKAtt|
|00000470| 28 29 20 7b 0d 0a 7d 00 | 41 74 74 49 73 50 4b 00 |() {..}.|AttIsPK.|
|00000480| 31 00 25 41 74 74 49 73 | 50 4b 00 42 61 73 69 63 |1.%AttIs|PK.Basic|
|00000490| 20 53 79 6e 74 61 78 3a | 0d 0a 25 41 74 74 49 73 | Syntax:|..%AttIs|
|000004a0| 50 4b 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |PK....Ba|sic Synt|
|000004b0| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|000004c0| 72 45 61 63 68 41 74 74 | 28 29 20 7b 0d 0a 20 20 |rEachAtt|() {.. |
|000004d0| 20 20 25 49 66 28 25 41 | 74 74 49 73 50 4b 29 20 | %If(%A|ttIsPK) |
|000004e0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 25 41 74 74 4e |{.. | %AttN|
|000004f0| 61 6d 65 20 2d 3e 20 50 | 4b 7d 0d 0a 7d 0d 0a 0d |ame -> P|K}..}...|
|00000500| 0a 45 78 70 61 6e 73 69 | 6f 6e 3a 0d 0a 6d 61 73 |.Expansi|on:..mas|
|00000510| 74 65 72 2d 6e 75 6d 62 | 65 72 20 2d 3e 20 50 4b |ter-numb|er -> PK|
|00000520| 0d 0a 6d 6f 76 69 65 2d | 63 6f 70 79 2d 6e 75 6d |..movie-|copy-num|
|00000530| 62 65 72 20 2d 3e 20 50 | 4b 0d 0a 00 25 41 74 74 |ber -> P|K...%Att|
|00000540| 49 73 50 4b 00 41 74 74 | 49 73 46 4b 00 32 00 25 |IsPK.Att|IsFK.2.%|
|00000550| 41 74 74 49 73 46 4b 00 | 42 61 73 69 63 20 53 79 |AttIsFK.|Basic Sy|
|00000560| 6e 74 61 78 3a 0d 0a 25 | 41 74 74 49 73 46 4b 0d |ntax:..%|AttIsFK.|
|00000570| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00000580| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 46 6f 72 45 61 |Example:|..%ForEa|
|00000590| 63 68 41 74 74 28 29 20 | 7b 0d 0a 20 20 20 20 25 |chAtt() |{.. %|
|000005a0| 49 66 28 25 41 74 74 49 | 73 46 4b 29 20 7b 0d 0a |If(%AttI|sFK) {..|
|000005b0| 20 20 20 20 20 20 20 20 | 25 41 74 74 4e 61 6d 65 | |%AttName|
|000005c0| 20 2d 3e 20 46 4b 7d 0d | 0a 7d 0d 0a 0d 0a 45 78 | -> FK}.|.}....Ex|
|000005d0| 70 61 6e 73 69 6f 6e 3a | 0d 0a 6d 61 73 74 65 72 |pansion:|..master|
|000005e0| 2d 6e 75 6d 62 65 72 20 | 2d 3e 20 46 4b 0d 0a 00 |-number |-> FK...|
|000005f0| 25 41 74 74 49 73 46 4b | 00 41 74 74 4e 75 6c 6c |%AttIsFK|.AttNull|
|00000600| 4f 70 74 69 6f 6e 00 33 | 00 25 41 74 74 4e 75 6c |Option.3|.%AttNul|
|00000610| 6c 4f 70 74 69 6f 6e 00 | 42 61 73 69 63 20 53 79 |lOption.|Basic Sy|
|00000620| 6e 74 61 78 3a 0d 0a 25 | 41 74 74 4e 75 6c 6c 4f |ntax:..%|AttNullO|
|00000630| 70 74 69 6f 6e 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ption...|.Basic S|
|00000640| 79 6e 74 61 78 20 45 78 | 61 6d 70 6c 65 3a 0d 0a |yntax Ex|ample:..|
|00000650| 25 46 6f 72 45 61 63 68 | 41 74 74 28 29 20 7b 0d |%ForEach|Att() {.|
|00000660| 0a 20 20 20 20 25 41 74 | 74 4e 61 6d 65 20 2d 3e |. %At|tName ->|
|00000670| 20 25 41 74 74 4e 75 6c | 6c 4f 70 74 69 6f 6e 0d | %AttNul|lOption.|
|00000680| 0a 7d 0d 0a 0d 0a 45 78 | 70 61 6e 73 69 6f 6e 3a |.}....Ex|pansion:|
|00000690| 0d 0a 6d 61 73 74 65 72 | 2d 6e 75 6d 62 65 72 20 |..master|-number |
|000006a0| 2d 3e 20 4e 4f 54 20 4e | 55 4c 4c 0d 0a 6d 6f 76 |-> NOT N|ULL..mov|
|000006b0| 69 65 2d 63 6f 70 79 2d | 6e 75 6d 62 65 72 20 2d |ie-copy-|number -|
|000006c0| 3e 20 4e 55 4c 4c 0d 0a | 67 65 6e 65 72 61 6c 2d |> NULL..|general-|
|000006d0| 63 6f 6e 64 69 74 69 6f | 6e 20 2d 3e 20 4e 55 4c |conditio|n -> NUL|
|000006e0| 4c 0d 0a 00 25 41 74 74 | 4e 75 6c 6c 4f 70 74 69 |L...%Att|NullOpti|
|000006f0| 6f 6e 00 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 00 |on.AttFi|eldName.|
|00000700| 34 00 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 00 |4.%AttFi|eldName.|
|00000710| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00000720| 41 74 74 46 69 65 6c 64 | 4e 61 6d 65 0d 0a 0d 0a |AttField|Name....|
|00000730| 42 61 73 69 63 20 53 79 | 6e 74 61 78 20 45 78 61 |Basic Sy|ntax Exa|
|00000740| 6d 70 6c 65 3a 0d 0a 25 | 46 6f 72 45 61 63 68 41 |mple:..%|ForEachA|
|00000750| 74 74 28 29 20 7b 0d 0a | 20 20 20 20 25 41 74 74 |tt() {..| %Att|
|00000760| 46 69 65 6c 64 4e 61 6d | 65 0d 0a 7d 0d 0a 0d 0a |FieldNam|e..}....|
|00000770| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 6d 61 73 74 |Expansio|n:..mast|
|00000780| 65 72 5f 6e 75 6d 62 65 | 72 0d 0a 6d 6f 76 69 65 |er_numbe|r..movie|
|00000790| 5f 63 6f 70 79 5f 6e 75 | 6d 62 65 72 0d 0a 67 65 |_copy_nu|mber..ge|
|000007a0| 6e 65 72 61 6c 5f 63 6f | 6e 64 69 74 69 6f 6e 0d |neral_co|ndition.|
|000007b0| 0a 00 25 41 74 74 46 69 | 65 6c 64 4e 61 6d 65 00 |..%AttFi|eldName.|
|000007c0| 50 61 72 65 6e 74 00 35 | 00 25 50 61 72 65 6e 74 |Parent.5|.%Parent|
|000007d0| 00 42 61 73 69 63 20 53 | 79 6e 74 61 78 3a 0d 0a |.Basic S|yntax:..|
|000007e0| 25 50 61 72 65 6e 74 0d | 0a 0d 0a 42 61 73 69 63 |%Parent.|...Basic|
|000007f0| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00000800| 0d 0a 25 50 61 72 65 6e | 74 0d 0a 45 78 70 61 6e |..%Paren|t..Expan|
|00000810| 73 69 6f 6e 3a 0d 0a 4d | 4f 56 49 45 5f 43 4f 50 |sion:..M|OVIE_COP|
|00000820| 59 00 25 50 61 72 65 6e | 74 00 41 74 74 46 69 65 |Y.%Paren|t.AttFie|
|00000830| 6c 64 57 69 64 74 68 00 | 36 00 25 41 74 74 46 69 |ldWidth.|6.%AttFi|
|00000840| 65 6c 64 57 69 64 74 68 | 00 42 61 73 69 63 20 53 |eldWidth|.Basic S|
|00000850| 79 6e 74 61 78 3a 0d 0a | 25 41 74 74 46 69 65 6c |yntax:..|%AttFiel|
|00000860| 64 57 69 64 74 68 0d 0a | 0d 0a 42 61 73 69 63 20 |dWidth..|..Basic |
|00000870| 53 79 6e 74 61 78 20 45 | 78 61 6d 70 6c 65 3a 0d |Syntax E|xample:.|
|00000880| 0a 25 46 6f 72 45 61 63 | 68 41 74 74 28 29 20 7b |.%ForEac|hAtt() {|
|00000890| 0d 0a 20 20 20 20 25 41 | 74 74 4e 61 6d 65 20 2d |.. %A|ttName -|
|000008a0| 3e 20 25 41 74 74 46 69 | 65 6c 64 57 69 64 74 68 |> %AttFi|eldWidth|
|000008b0| 0d 0a 7d 0d 0a 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |..}....E|xpansion|
|000008c0| 3a 0d 0a 6d 61 73 74 65 | 72 2d 6e 75 6d 62 65 72 |:..maste|r-number|
|000008d0| 20 2d 3e 20 30 0d 0a 6d | 6f 76 69 65 2d 63 6f 70 | -> 0..m|ovie-cop|
|000008e0| 79 2d 6e 75 6d 62 65 72 | 20 2d 3e 20 30 0d 0a 67 |y-number| -> 0..g|
|000008f0| 65 6e 65 72 61 6c 2d 63 | 6f 6e 64 69 74 69 6f 6e |eneral-c|ondition|
|00000900| 20 2d 3e 20 31 30 0d 0a | 00 25 41 74 74 46 69 65 | -> 10..|.%AttFie|
|00000910| 6c 64 57 69 64 74 68 00 | 41 74 74 44 61 74 61 74 |ldWidth.|AttDatat|
|00000920| 79 70 65 00 37 00 25 41 | 74 74 44 61 74 61 74 79 |ype.7.%A|ttDataty|
|00000930| 70 65 00 42 61 73 69 63 | 20 53 79 6e 74 61 78 3a |pe.Basic| Syntax:|
|00000940| 0d 0a 25 41 74 74 44 61 | 74 61 74 79 70 65 0d 0a |..%AttDa|tatype..|
|00000950| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|00000960| 78 61 6d 70 6c 65 3a 0d | 0a 25 46 6f 72 45 61 63 |xample:.|.%ForEac|
|00000970| 68 41 74 74 28 29 20 7b | 0d 0a 20 20 20 20 25 41 |hAtt() {|.. %A|
|00000980| 74 74 4e 61 6d 65 20 2d | 3e 20 25 41 74 74 44 61 |ttName -|> %AttDa|
|00000990| 74 61 74 79 70 65 0d 0a | 7d 0d 0a 0d 0a 45 78 70 |tatype..|}....Exp|
|000009a0| 61 6e 73 69 6f 6e 3a 0d | 0a 6d 61 73 74 65 72 2d |ansion:.|.master-|
|000009b0| 6e 75 6d 62 65 72 20 2d | 3e 20 69 6e 74 0d 0a 6d |number -|> int..m|
|000009c0| 6f 76 69 65 2d 63 6f 70 | 79 2d 6e 75 6d 62 65 72 |ovie-cop|y-number|
|000009d0| 20 2d 3e 20 69 6e 74 0d | 0a 67 65 6e 65 72 61 6c | -> int.|.general|
|000009e0| 2d 63 6f 6e 64 69 74 69 | 6f 6e 20 2d 3e 20 76 61 |-conditi|on -> va|
|000009f0| 72 63 68 61 72 28 31 30 | 29 0d 0a 00 25 41 74 74 |rchar(10|)...%Att|
|00000a00| 44 61 74 61 74 79 70 65 | 00 3d 3d 00 38 00 25 3c |Datatype|.==.8.%<|
|00000a10| 63 6f 6d 70 61 72 69 73 | 6f 6e 20 6f 70 3e 28 2c |comparis|on op>(,|
|00000a20| 29 00 43 6f 6d 70 61 72 | 69 73 6f 6e 20 4f 70 65 |).Compar|ison Ope|
|00000a30| 72 61 74 6f 72 73 3a 0d | 0a 20 20 3d 3d 2c 3e 3d |rators:.|. ==,>=|
|00000a40| 2c 3e 2c 3c 3d 2c 3c 2c | 21 3d 2c 3c 3e 0d 0a 0d |,>,<=,<,|!=,<>...|
|00000a50| 0a 42 61 73 69 63 20 53 | 79 6e 74 61 78 3a 0d 0a |.Basic S|yntax:..|
|00000a60| 25 3d 3d 28 3c 6d 61 63 | 72 6f 20 63 6f 64 65 31 |%==(<mac|ro code1|
|00000a70| 3e 2c 20 3c 6d 61 63 72 | 6f 20 63 6f 64 65 32 3e |>, <macr|o code2>|
|00000a80| 29 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |)....Bas|ic Synta|
|00000a90| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 46 6f 72 |x Exampl|e:..%For|
|00000aa0| 45 61 63 68 41 74 74 28 | 29 20 7b 0d 0a 20 20 20 |EachAtt(|) {.. |
|00000ab0| 20 25 49 66 28 25 3d 3d | 28 25 41 74 74 44 61 74 | %If(%==|(%AttDat|
|00000ac0| 61 74 79 70 65 2c 20 69 | 6e 74 65 67 65 72 29 29 |atype, i|nteger))|
|00000ad0| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 25 41 74 74 | {.. | %Att|
|00000ae0| 4e 61 6d 65 7d 0d 0a 7d | 0d 0a 0d 0a 45 78 70 61 |Name}..}|....Expa|
|00000af0| 6e 73 69 6f 6e 3a 0d 0a | 6d 61 73 74 65 72 2d 6e |nsion:..|master-n|
|00000b00| 75 6d 62 65 72 0d 0a 6d | 6f 76 69 65 2d 63 6f 70 |umber..m|ovie-cop|
|00000b10| 79 2d 6e 75 6d 62 65 72 | 0d 0a 00 25 3d 3d 28 2c |y-number|...%==(,|
|00000b20| 29 00 3c 3e 00 39 00 00 | 00 00 21 3d 00 3a 00 00 |).<>.9..|..!=.:..|
|00000b30| 00 00 3e 3d 00 3b 00 00 | 00 00 3c 3d 00 3c 00 00 |..>=.;..|..<=.<..|
|00000b40| 00 00 3e 00 3d 00 00 00 | 00 3c 00 3e 00 00 00 00 |..>.=...|.<.>....|
|00000b50| 41 6e 64 00 3f 00 25 41 | 6e 64 28 2c 29 00 42 61 |And.?.%A|nd(,).Ba|
|00000b60| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 41 6e |sic Synt|ax:..%An|
|00000b70| 64 28 3c 6d 61 63 72 6f | 20 63 6f 64 65 31 3e 2c |d(<macro| code1>,|
|00000b80| 20 3c 6d 61 63 72 6f 20 | 63 6f 64 65 32 3e 29 0d | <macro |code2>).|
|00000b90| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00000ba0| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 46 6f 72 45 61 |Example:|..%ForEa|
|00000bb0| 63 68 41 74 74 28 29 20 | 7b 0d 0a 20 20 20 20 25 |chAtt() |{.. %|
|00000bc0| 49 66 28 25 41 6e 64 28 | 25 41 74 74 49 73 50 4b |If(%And(|%AttIsPK|
|00000bd0| 2c 25 41 74 74 49 73 46 | 4b 29 29 20 7b 0d 0a 20 |,%AttIsF|K)) {.. |
|00000be0| 20 20 20 20 20 20 20 25 | 41 74 74 4e 61 6d 65 7d | %|AttName}|
|00000bf0| 0d 0a 7d 0d 0a 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |..}....E|xpansion|
|00000c00| 3a 0d 0a 6d 61 73 74 65 | 72 2d 6e 75 6d 62 65 72 |:..maste|r-number|
|00000c10| 0d 0a 00 25 41 6e 64 28 | 2c 29 00 4f 72 00 40 00 |...%And(|,).Or.@.|
|00000c20| 25 4f 72 28 2c 29 00 42 | 61 73 69 63 20 53 79 6e |%Or(,).B|asic Syn|
|00000c30| 74 61 78 3a 0d 0a 25 4f | 72 28 3c 6d 61 63 72 6f |tax:..%O|r(<macro|
|00000c40| 20 63 6f 64 65 31 3e 2c | 20 3c 6d 61 63 72 6f 20 | code1>,| <macro |
|00000c50| 63 6f 64 65 32 3e 29 0d | 0a 0d 0a 42 61 73 69 63 |code2>).|...Basic|
|00000c60| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00000c70| 0d 0a 25 46 6f 72 45 61 | 63 68 41 74 74 28 29 20 |..%ForEa|chAtt() |
|00000c80| 7b 0d 0a 20 20 20 20 25 | 49 66 28 25 4f 72 28 25 |{.. %|If(%Or(%|
|00000c90| 41 74 74 49 73 50 4b 2c | 25 3d 3d 28 25 41 74 74 |AttIsPK,|%==(%Att|
|00000ca0| 44 61 74 61 74 79 70 65 | 2c 76 61 72 63 68 61 72 |Datatype|,varchar|
|00000cb0| 28 31 30 29 29 29 29 20 | 7b 0d 0a 20 20 20 20 20 |(10)))) |{.. |
|00000cc0| 20 20 20 25 41 74 74 4e | 61 6d 65 7d 0d 0a 7d 0d | %AttN|ame}..}.|
|00000cd0| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 6d |...Expan|sion:..m|
|00000ce0| 61 73 74 65 72 2d 6e 75 | 6d 62 65 72 0d 0a 6d 6f |aster-nu|mber..mo|
|00000cf0| 76 69 65 2d 63 6f 70 79 | 2d 6e 75 6d 62 65 72 0d |vie-copy|-number.|
|00000d00| 0a 67 65 6e 65 72 61 6c | 2d 63 6f 6e 64 69 74 69 |.general|-conditi|
|00000d10| 6f 6e 0d 0a 00 25 4f 72 | 28 2c 29 00 4e 6f 74 00 |on...%Or|(,).Not.|
|00000d20| 41 00 25 4e 6f 74 28 29 | 00 42 61 73 69 63 20 53 |A.%Not()|.Basic S|
|00000d30| 79 6e 74 61 78 3a 0d 0a | 25 4e 6f 74 28 3c 6d 61 |yntax:..|%Not(<ma|
|00000d40| 63 72 6f 20 63 6f 64 65 | 3e 29 0d 0a 0d 0a 42 61 |cro code|>)....Ba|
|00000d50| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|00000d60| 6c 65 3a 0d 0a 25 46 6f | 72 45 61 63 68 41 74 74 |le:..%Fo|rEachAtt|
|00000d70| 28 29 20 7b 0d 0a 20 20 | 20 20 25 49 66 28 25 4e |() {.. | %If(%N|
|00000d80| 6f 74 28 25 3d 3d 28 25 | 41 74 74 44 61 74 61 74 |ot(%==(%|AttDatat|
|00000d90| 79 70 65 2c 20 69 6e 74 | 29 29 29 20 7b 0d 0a 20 |ype, int|))) {.. |
|00000da0| 20 20 20 20 20 20 20 25 | 41 74 74 4e 61 6d 65 7d | %|AttName}|
|00000db0| 0d 0a 7d 0d 0a 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |..}....E|xpansion|
|00000dc0| 3a 0d 0a 67 65 6e 65 72 | 61 6c 2d 63 6f 6e 64 69 |:..gener|al-condi|
|00000dd0| 74 69 6f 6e 0d 0a 00 25 | 4e 6f 74 28 29 00 44 65 |tion...%|Not().De|
|00000de0| 63 6c 00 42 00 25 44 65 | 63 6c 00 64 65 63 6c 61 |cl.B.%De|cl.decla|
|00000df0| 72 65 73 20 61 72 67 75 | 6d 65 6e 74 20 61 73 20 |res argu|ment as |
|00000e00| 61 20 76 61 72 69 61 62 | 6c 65 0d 0a 61 6e 64 20 |a variab|le..and |
|00000e10| 6f 70 74 69 6f 6e 61 6c | 6c 79 20 69 6e 69 74 69 |optional|ly initi|
|00000e20| 61 6c 69 7a 65 73 20 69 | 74 0d 0a 0d 0a 42 61 73 |alizes i|t....Bas|
|00000e30| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|00000e40| 65 3a 0d 0a 25 44 65 63 | 6c 28 3c 61 72 67 3e 2c |e:..%Dec|l(<arg>,|
|00000e50| 3c 69 6e 69 74 69 61 6c | 20 76 61 6c 75 65 3e 29 |<initial| value>)|
|00000e60| 00 25 44 65 63 6c 28 69 | 2c 30 29 00 3a 00 43 00 |.%Decl(i|,0).:.C.|
|00000e70| 25 3a 00 72 65 74 75 72 | 6e 73 20 74 68 65 20 76 |%:.retur|ns the v|
|00000e80| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 67 69 76 65 |alue of |the give|
|00000e90| 6e 20 76 61 72 69 61 62 | 6c 65 0d 0a 0d 0a 42 61 |n variab|le....Ba|
|00000ea0| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|00000eb0| 6c 65 3a 0d 0a 25 3a 3c | 76 61 72 69 61 62 6c 65 |le:..%:<|variable|
|00000ec0| 3e 00 25 3a 00 3d 00 44 | 00 25 3d 00 61 73 73 69 |>.%:.=.D|.%=.assi|
|00000ed0| 67 6e 73 20 61 20 76 61 | 6c 75 65 20 74 6f 20 61 |gns a va|lue to a|
|00000ee0| 20 76 61 72 69 61 62 6c | 65 0d 0a 0d 0a 42 61 73 | variabl|e....Bas|
|00000ef0| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|00000f00| 65 3a 0d 0a 25 3d 28 3c | 76 61 72 69 61 62 6c 65 |e:..%=(<|variable|
|00000f10| 3e 2c 3c 6d 61 63 72 6f | 20 63 6f 64 65 3e 29 00 |>,<macro| code>).|
|00000f20| 25 3d 28 2c 29 00 2b 00 | 45 00 25 3c 61 72 69 74 |%=(,).+.|E.%<arit|
|00000f30| 68 6d 65 74 69 63 20 6f | 70 3e 28 2c 29 00 41 72 |hmetic o|p>(,).Ar|
|00000f40| 69 74 68 6d 65 74 69 63 | 20 4f 70 65 72 61 74 6f |ithmetic| Operato|
|00000f50| 72 69 6f 6e 3a 0d 0a 20 | 20 2b 2c 2d 2c 2a 2c 2f |rion:.. | +,-,*,/|
|00000f60| 0d 0a 0d 0a 42 61 73 69 | 63 20 53 79 6e 74 61 78 |....Basi|c Syntax|
|00000f70| 3a 0d 0a 25 2b 28 3c 6d | 61 63 72 6f 20 63 6f 64 |:..%+(<m|acro cod|
|00000f80| 65 31 3e 2c 20 3c 6d 61 | 63 72 6f 20 63 6f 64 65 |e1>, <ma|cro code|
|00000f90| 32 3e 29 0d 0a 00 25 2b | 28 2c 29 00 2d 00 46 00 |2>)...%+|(,).-.F.|
|00000fa0| 00 00 00 2a 00 47 00 00 | 00 00 2f 00 48 00 00 00 |...*.G..|../.H...|
|00000fb0| 00 43 6f 6e 63 61 74 00 | 49 00 25 43 6f 6e 63 61 |.Concat.|I.%Conca|
|00000fc0| 74 00 63 6f 6e 63 61 74 | 65 6e 61 74 65 73 20 74 |t.concat|enates t|
|00000fd0| 77 6f 20 76 61 6c 75 65 | 73 20 61 6e 64 20 72 65 |wo value|s and re|
|00000fe0| 74 75 72 6e 73 20 74 68 | 65 20 72 65 73 75 6c 74 |turns th|e result|
|00000ff0| 0d 0a 0d 0a 42 61 73 69 | 63 20 53 79 6e 74 61 78 |....Basi|c Syntax|
|00001000| 20 45 78 61 6d 70 6c 65 | 3a 0d 0a 25 43 6f 6e 63 | Example|:..%Conc|
|00001010| 61 74 28 3c 76 61 6c 75 | 65 31 3e 2c 3c 76 61 6c |at(<valu|e1>,<val|
|00001020| 75 65 32 3e 29 00 25 43 | 6f 6e 63 61 74 28 2c 29 |ue2>).%C|oncat(,)|
|00001030| 00 49 66 00 4a 00 25 49 | 66 28 29 00 42 61 73 69 |.If.J.%I|f().Basi|
|00001040| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 49 66 20 28 |c Syntax|:..%If (|
|00001050| 3c 70 72 65 64 69 63 61 | 74 65 3e 29 20 7b 3c 6d |<predica|te>) {<m|
|00001060| 61 63 72 6f 20 63 6f 64 | 65 3e 7d 0d 0a 0d 0a 42 |acro cod|e>}....B|
|00001070| 61 73 69 63 20 53 79 6e | 74 61 78 20 45 78 61 6d |asic Syn|tax Exam|
|00001080| 70 6c 65 3a 0d 0a 25 46 | 6f 72 45 61 63 68 41 74 |ple:..%F|orEachAt|
|00001090| 74 28 29 20 7b 0d 0a 20 | 20 20 25 49 66 28 25 41 |t() {.. | %If(%A|
|000010a0| 74 74 49 73 50 4b 29 20 | 7b 0d 0a 20 20 20 20 20 |ttIsPK) |{.. |
|000010b0| 20 20 20 25 41 74 74 4e | 61 6d 65 20 2d 3e 20 50 | %AttN|ame -> P|
|000010c0| 4b 7d 0d 0a 7d 0d 0a 0d | 0a 45 78 70 61 6e 73 69 |K}..}...|.Expansi|
|000010d0| 6f 6e 3a 0d 0a 6d 61 73 | 74 65 72 2d 6e 75 6d 62 |on:..mas|ter-numb|
|000010e0| 65 72 20 2d 3e 20 50 4b | 0d 0a 6d 6f 76 69 65 2d |er -> PK|..movie-|
|000010f0| 63 6f 70 79 2d 6e 75 6d | 62 65 72 20 2d 3e 20 50 |copy-num|ber -> P|
|00001100| 4b 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |K....Ful|l Syntax|
|00001110| 3a 0d 0a 25 49 66 20 28 | 3c 70 72 65 64 69 63 61 |:..%If (|<predica|
|00001120| 74 65 3e 29 20 7b 3c 6d | 61 63 72 6f 20 63 6f 64 |te>) {<m|acro cod|
|00001130| 65 3e 7d 20 25 45 6c 73 | 65 20 7b 3c 6d 61 63 72 |e>} %Els|e {<macr|
|00001140| 6f 20 63 6f 64 65 3e 7d | 0d 0a 00 25 49 66 20 28 |o code>}|...%If (|
|00001150| 29 20 7b 0d 0a 7d 00 54 | 72 69 67 67 65 72 52 65 |) {..}.T|riggerRe|
|00001160| 6c 52 49 00 4b 00 25 54 | 72 69 67 67 65 72 52 65 |lRI.K.%T|riggerRe|
|00001170| 6c 52 49 28 29 00 46 75 | 6c 6c 20 53 79 6e 74 61 |lRI().Fu|ll Synta|
|00001180| 78 3a 0d 0a 25 54 72 69 | 67 67 65 72 52 65 6c 52 |x:..%Tri|ggerRelR|
|00001190| 49 28 3c 61 63 74 69 6f | 6e 3e 2c 3c 74 79 70 65 |I(<actio|n>,<type|
|000011a0| 3e 2c 3c 69 6e 74 65 67 | 72 69 74 79 3e 29 0d 0a |>,<integ|rity>)..|
|000011b0| 0d 0a 46 75 6c 6c 20 53 | 79 6e 74 61 78 20 45 78 |..Full S|yntax Ex|
|000011c0| 61 6d 70 6c 65 3a 0d 0a | 25 46 6f 72 45 61 63 68 |ample:..|%ForEach|
|000011d0| 43 68 69 6c 64 52 65 6c | 28 29 20 7b 0d 0a 20 20 |ChildRel|() {.. |
|000011e0| 25 49 66 28 25 54 72 69 | 67 67 65 72 52 65 6c 52 |%If(%Tri|ggerRelR|
|000011f0| 49 28 55 70 64 61 74 65 | 2c 20 43 68 69 6c 64 2c |I(Update|, Child,|
|00001200| 20 43 61 73 63 61 64 65 | 29 29 20 7b 25 56 65 72 | Cascade|)) {%Ver|
|00001210| 62 50 68 72 61 73 65 20 | 43 68 69 6c 64 20 55 70 |bPhrase |Child Up|
|00001220| 64 61 74 65 20 43 61 73 | 63 61 64 65 7d 0d 0a 7d |date Cas|cade}..}|
|00001230| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 69 73 |..Expans|ion:..is|
|00001240| 20 72 65 6e 74 65 64 20 | 75 6e 64 65 72 20 43 68 | rented |under Ch|
|00001250| 69 6c 64 20 55 70 64 61 | 74 65 20 43 61 73 63 61 |ild Upda|te Casca|
|00001260| 64 65 0d 0a 0d 0a 55 73 | 61 67 65 3a 0d 0a 3c 61 |de....Us|age:..<a|
|00001270| 63 74 69 6f 6e 3e 20 6d | 75 73 74 20 62 65 20 49 |ction> m|ust be I|
|00001280| 6e 73 65 72 74 2c 20 44 | 65 6c 65 74 65 2c 20 6f |nsert, D|elete, o|
|00001290| 72 20 55 70 64 61 74 65 | 0d 0a 3c 74 79 70 65 3e |r Update|..<type>|
|000012a0| 20 6d 75 73 74 20 62 65 | 20 50 61 72 65 6e 74 20 | must be| Parent |
|000012b0| 6f 72 20 43 68 69 6c 64 | 0d 0a 3c 69 6e 74 65 67 |or Child|..<integ|
|000012c0| 72 69 74 79 3e 20 6d 75 | 73 74 20 62 65 20 49 6e |rity> mu|st be In|
|000012d0| 73 65 72 74 2c 20 43 61 | 73 63 61 64 65 2c 20 53 |sert, Ca|scade, S|
|000012e0| 65 74 4e 75 6c 6c 2c 20 | 6f 72 20 53 65 74 44 65 |etNull, |or SetDe|
|000012f0| 66 61 75 6c 74 00 25 54 | 72 69 67 67 65 72 52 65 |fault.%T|riggerRe|
|00001300| 6c 52 49 28 29 20 7b 0d | 0a 7d 00 50 68 79 73 52 |lRI() {.|.}.PhysR|
|00001310| 65 6c 4e 61 6d 65 00 4c | 00 25 50 68 79 73 52 65 |elName.L|.%PhysRe|
|00001320| 6c 4e 61 6d 65 00 42 61 | 73 69 63 20 53 79 6e 74 |lName.Ba|sic Synt|
|00001330| 61 78 3a 0d 0a 25 50 68 | 79 73 52 65 6c 4e 61 6d |ax:..%Ph|ysRelNam|
|00001340| 65 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |e....Bas|ic Synta|
|00001350| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 50 68 79 |x Exampl|e:..%Phy|
|00001360| 73 52 65 6c 4e 61 6d 65 | 0d 0a 45 78 70 61 6e 73 |sRelName|..Expans|
|00001370| 69 6f 6e 3a 0d 0a 69 73 | 5f 72 65 6e 74 65 64 5f |ion:..is|_rented_|
|00001380| 75 6e 64 65 72 00 25 50 | 68 79 73 52 65 6c 4e 61 |under.%P|hysRelNa|
|00001390| 6d 65 00 43 61 72 64 69 | 6e 61 6c 69 74 79 00 4d |me.Cardi|nality.M|
|000013a0| 00 25 43 61 72 64 69 6e | 61 6c 69 74 79 00 42 61 |.%Cardin|ality.Ba|
|000013b0| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 43 61 |sic Synt|ax:..%Ca|
|000013c0| 72 64 69 6e 61 6c 69 74 | 79 0d 0a 0d 0a 42 61 73 |rdinalit|y....Bas|
|000013d0| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|000013e0| 65 3a 0d 0a 25 43 61 72 | 64 69 6e 61 6c 69 74 79 |e:..%Car|dinality|
|000013f0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 50 00 |..Expans|ion:..P.|
|00001400| 25 43 61 72 64 69 6e 61 | 6c 69 74 79 00 53 75 62 |%Cardina|lity.Sub|
|00001410| 73 74 72 00 4e 00 25 53 | 75 62 73 74 72 28 29 00 |str.N.%S|ubstr().|
|00001420| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00001430| 53 75 62 73 74 72 28 3c | 6d 61 63 72 6f 20 63 6f |Substr(<|macro co|
|00001440| 64 65 3e 2c 3c 69 6e 69 | 74 69 61 6c 20 70 6f 73 |de>,<ini|tial pos|
|00001450| 3e 29 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |>)....Ba|sic Synt|
|00001460| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 53 75 |ax Examp|le:..%Su|
|00001470| 62 73 74 72 28 61 62 63 | 64 65 66 67 2c 34 29 0d |bstr(abc|defg,4).|
|00001480| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 64 |...Expan|sion:..d|
|00001490| 65 66 67 0d 0a 0d 0a 46 | 75 6c 6c 20 53 79 6e 74 |efg....F|ull Synt|
|000014a0| 61 78 3a 0d 0a 25 53 75 | 62 73 74 72 28 3c 6d 61 |ax:..%Su|bstr(<ma|
|000014b0| 63 72 6f 20 63 6f 64 65 | 3e 2c 3c 69 6e 69 74 69 |cro code|>,<initi|
|000014c0| 61 6c 20 70 6f 73 3e 2c | 3c 6c 65 6e 67 74 68 3e |al pos>,|<length>|
|000014d0| 29 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |)....Ful|l Syntax|
|000014e0| 20 45 78 61 6d 70 6c 65 | 3a 0d 0a 25 53 75 62 73 | Example|:..%Subs|
|000014f0| 74 72 28 61 62 63 64 65 | 66 67 2c 34 2c 33 29 0d |tr(abcde|fg,4,3).|
|00001500| 0a 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 64 |...Expan|sion:..d|
|00001510| 65 66 00 25 53 75 62 73 | 74 72 28 2c 2c 29 00 41 |ef.%Subs|tr(,,).A|
|00001520| 74 74 50 68 79 73 44 61 | 74 61 74 79 70 65 00 4f |ttPhysDa|tatype.O|
|00001530| 00 25 41 74 74 50 68 79 | 73 44 61 74 61 74 79 70 |.%AttPhy|sDatatyp|
|00001540| 65 00 42 61 73 69 63 20 | 53 79 6e 74 61 78 3a 0d |e.Basic |Syntax:.|
|00001550| 0a 25 41 74 74 50 68 79 | 73 44 61 74 61 74 79 70 |.%AttPhy|sDatatyp|
|00001560| 65 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |e....Bas|ic Synta|
|00001570| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 46 6f 72 |x Exampl|e:..%For|
|00001580| 45 61 63 68 41 74 74 28 | 29 20 7b 0d 0a 20 20 20 |EachAtt(|) {.. |
|00001590| 20 25 41 74 74 4e 61 6d | 65 20 2d 3e 20 25 41 74 | %AttNam|e -> %At|
|000015a0| 74 50 68 79 73 44 61 74 | 61 74 79 70 65 0d 0a 7d |tPhysDat|atype..}|
|000015b0| 0d 0a 0d 0a 45 78 70 61 | 6e 73 69 6f 6e 3a 0d 0a |....Expa|nsion:..|
|000015c0| 6d 61 73 74 65 72 2d 6e | 75 6d 62 65 72 20 2d 3e |master-n|umber ->|
|000015d0| 20 69 6e 74 0d 0a 6d 6f | 76 69 65 2d 63 6f 70 79 | int..mo|vie-copy|
|000015e0| 2d 6e 75 6d 62 65 72 20 | 2d 3e 20 69 6e 74 0d 0a |-number |-> int..|
|000015f0| 67 65 6e 65 72 61 6c 2d | 63 6f 6e 64 69 74 69 6f |general-|conditio|
|00001600| 6e 20 2d 3e 20 76 61 72 | 63 68 61 72 28 31 30 29 |n -> var|char(10)|
|00001610| 0d 0a 0d 0a 4e 6f 74 65 | 3a 0d 0a 72 65 74 75 72 |....Note|:..retur|
|00001620| 6e 73 20 61 20 62 75 69 | 6c 74 69 6e 20 64 61 74 |ns a bui|ltin dat|
|00001630| 61 74 79 70 65 20 65 76 | 65 6e 20 69 66 20 74 68 |atype ev|en if th|
|00001640| 65 20 61 74 74 72 69 62 | 75 74 65 0d 0a 69 73 20 |e attrib|ute..is |
|00001650| 61 74 74 61 63 68 65 64 | 20 74 6f 20 61 20 75 73 |attached| to a us|
|00001660| 65 72 2d 64 65 66 69 6e | 65 64 20 64 61 74 61 74 |er-defin|ed datat|
|00001670| 79 70 65 00 25 41 74 74 | 50 68 79 73 44 61 74 61 |ype.%Att|PhysData|
|00001680| 74 79 70 65 00 44 61 74 | 65 74 69 6d 65 00 50 00 |type.Dat|etime.P.|
|00001690| 25 44 61 74 65 74 69 6d | 65 00 42 61 73 69 63 20 |%Datetim|e.Basic |
|000016a0| 53 79 6e 74 61 78 3a 0d | 0a 25 44 61 74 65 74 69 |Syntax:.|.%Dateti|
|000016b0| 6d 65 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |me....Ba|sic Synt|
|000016c0| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 44 61 |ax Examp|le:..%Da|
|000016d0| 74 65 74 69 6d 65 0d 0a | 57 65 64 20 46 65 62 20 |tetime..|Wed Feb |
|000016e0| 31 37 20 31 32 3a 35 36 | 3a 31 36 20 31 39 39 33 |17 12:56|:16 1993|
|000016f0| 00 25 44 61 74 65 74 69 | 6d 65 00 41 74 74 44 65 |.%Dateti|me.AttDe|
|00001700| 66 61 75 6c 74 00 51 00 | 25 41 74 74 44 65 66 61 |fault.Q.|%AttDefa|
|00001710| 75 6c 74 00 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ult.retu|rns the |
|00001720| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 64 65 66 61 |name of |the defa|
|00001730| 75 6c 74 0d 0a 61 74 74 | 61 63 68 65 64 20 74 6f |ult..att|ached to|
|00001740| 20 74 68 65 20 67 69 76 | 65 6e 20 61 74 74 72 69 | the giv|en attri|
|00001750| 62 75 74 65 0d 0a 00 25 | 41 74 74 44 65 66 61 75 |bute...%|AttDefau|
|00001760| 6c 74 28 29 00 41 74 74 | 44 65 66 00 52 00 25 41 |lt().Att|Def.R.%A|
|00001770| 74 74 44 65 66 00 72 65 | 74 75 72 6e 73 20 74 68 |ttDef.re|turns th|
|00001780| 65 20 61 74 74 72 69 62 | 75 74 65 27 73 20 64 65 |e attrib|ute's de|
|00001790| 66 69 6e 69 74 69 6f 6e | 0d 0a 00 25 41 74 74 44 |finition|...%AttD|
|000017a0| 65 66 00 41 74 74 56 61 | 6c 69 64 61 74 69 6f 6e |ef.AttVa|lidation|
|000017b0| 00 53 00 25 41 74 74 56 | 61 6c 69 64 61 74 69 6f |.S.%AttV|alidatio|
|000017c0| 6e 00 72 65 74 75 72 6e | 73 20 74 68 65 20 6e 61 |n.return|s the na|
|000017d0| 6d 65 20 6f 66 20 74 68 | 65 20 76 61 6c 69 64 61 |me of th|e valida|
|000017e0| 74 69 6f 6e 0d 0a 61 74 | 74 61 63 68 65 64 20 74 |tion..at|tached t|
|000017f0| 6f 20 74 68 65 20 67 69 | 76 65 6e 20 61 74 74 72 |o the gi|ven attr|
|00001800| 69 62 75 74 65 0d 0a 00 | 25 41 74 74 56 61 6c 69 |ibute...|%AttVali|
|00001810| 64 61 74 69 6f 6e 00 56 | 61 6c 69 64 61 74 69 6f |dation.V|alidatio|
|00001820| 6e 48 61 73 56 61 6c 69 | 64 56 61 6c 75 65 73 00 |nHasVali|dValues.|
|00001830| 54 00 25 56 61 6c 69 64 | 61 74 69 6f 6e 48 61 73 |T.%Valid|ationHas|
|00001840| 56 61 6c 69 64 56 61 6c | 75 65 73 00 54 52 55 45 |ValidVal|ues.TRUE|
|00001850| 20 69 73 20 72 65 74 75 | 72 6e 65 64 20 69 66 20 | is retu|rned if |
|00001860| 74 68 65 20 67 69 76 65 | 6e 0d 0a 76 61 6c 69 64 |the give|n..valid|
|00001870| 61 74 69 6f 6e 20 68 61 | 73 20 61 6e 79 20 76 61 |ation ha|s any va|
|00001880| 6c 69 64 20 76 61 6c 75 | 65 73 2c 0d 0a 6f 74 68 |lid valu|es,..oth|
|00001890| 65 72 77 69 73 65 20 46 | 41 4c 53 45 20 69 73 20 |erwise F|ALSE is |
|000018a0| 72 65 74 75 72 6e 65 64 | 0d 0a 0d 0a 42 61 73 69 |returned|....Basi|
|000018b0| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 56 61 6c 69 |c Syntax|:..%Vali|
|000018c0| 64 61 74 69 6f 6e 48 61 | 73 56 61 6c 69 64 56 61 |dationHa|sValidVa|
|000018d0| 6c 75 65 73 28 3c 6e 61 | 6d 65 20 6f 66 20 76 61 |lues(<na|me of va|
|000018e0| 6c 69 64 61 74 69 6f 6e | 3e 29 0d 0a 0d 0a 00 25 |lidation|>).....%|
|000018f0| 56 61 6c 69 64 61 74 69 | 6f 6e 48 61 73 56 61 6c |Validati|onHasVal|
|00001900| 69 64 56 61 6c 75 65 73 | 00 46 6f 72 45 61 63 68 |idValues|.ForEach|
|00001910| 56 61 6c 69 64 56 61 6c | 75 65 00 55 00 25 46 6f |ValidVal|ue.U.%Fo|
|00001920| 72 45 61 63 68 56 61 6c | 69 64 56 61 6c 75 65 28 |rEachVal|idValue(|
|00001930| 29 00 6d 61 63 72 6f 73 | 20 77 69 74 68 69 6e 20 |).macros| within |
|00001940| 74 68 65 20 73 63 6f 70 | 65 20 6f 66 20 74 68 65 |the scop|e of the|
|00001950| 0d 0a 62 72 61 63 65 73 | 20 61 72 65 20 65 76 61 |..braces| are eva|
|00001960| 6c 75 61 74 65 64 20 66 | 6f 72 20 65 61 63 68 20 |luated f|or each |
|00001970| 76 61 6c 69 64 0d 0a 76 | 61 6c 75 65 20 6f 66 20 |valid..v|alue of |
|00001980| 74 68 65 20 67 69 76 65 | 6e 20 76 61 6c 69 64 61 |the give|n valida|
|00001990| 74 69 6f 6e 0d 0a 00 25 | 46 6f 72 45 61 63 68 56 |tion...%|ForEachV|
|000019a0| 61 6c 69 64 56 61 6c 75 | 65 28 3c 76 61 6c 69 64 |alidValu|e(<valid|
|000019b0| 61 74 69 6f 6e 20 6e 61 | 6d 65 3e 29 20 7b 0d 0a |ation na|me>) {..|
|000019c0| 7d 00 56 61 6c 69 64 56 | 61 6c 75 65 44 65 66 00 |}.ValidV|alueDef.|
|000019d0| 56 00 25 56 61 6c 69 64 | 56 61 6c 75 65 44 65 66 |V.%Valid|ValueDef|
|000019e0| 00 72 65 74 75 72 6e 73 | 20 74 68 65 20 64 65 66 |.returns| the def|
|000019f0| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 61 0d 0a 76 61 |inition |of a..va|
|00001a00| 6c 69 64 20 76 61 6c 75 | 65 0d 0a 0d 0a 55 73 61 |lid valu|e....Usa|
|00001a10| 67 65 20 43 6f 6e 74 65 | 78 74 3a 0d 0a 20 20 20 |ge Conte|xt:.. |
|00001a20| 20 2d 20 77 69 74 68 69 | 6e 20 74 68 65 20 73 63 | - withi|n the sc|
|00001a30| 6f 70 65 20 6f 66 20 61 | 20 76 61 6c 69 64 20 76 |ope of a| valid v|
|00001a40| 61 6c 75 65 0d 0a 00 25 | 56 61 6c 69 64 56 61 6c |alue...%|ValidVal|
|00001a50| 75 65 44 65 66 00 56 61 | 6c 69 64 56 61 6c 75 65 |ueDef.Va|lidValue|
|00001a60| 00 57 00 25 56 61 6c 69 | 64 56 61 6c 75 65 00 72 |.W.%Vali|dValue.r|
|00001a70| 65 74 75 72 6e 73 20 74 | 68 65 20 64 61 74 61 20 |eturns t|he data |
|00001a80| 76 61 6c 75 65 20 6f 66 | 20 61 0d 0a 76 61 6c 69 |value of| a..vali|
|00001a90| 64 20 76 61 6c 75 65 0d | 0a 0d 0a 55 73 61 67 65 |d value.|...Usage|
|00001aa0| 20 43 6f 6e 74 65 78 74 | 3a 0d 0a 20 20 20 20 2d | Context|:.. -|
|00001ab0| 20 77 69 74 68 69 6e 20 | 74 68 65 20 73 63 6f 70 | within |the scop|
|00001ac0| 65 20 6f 66 20 61 20 76 | 61 6c 69 64 20 76 61 6c |e of a v|alid val|
|00001ad0| 75 65 0d 0a 00 25 56 61 | 6c 69 64 56 61 6c 75 65 |ue...%Va|lidValue|
|00001ae0| 00 4c 65 6e 00 58 00 25 | 4c 65 6e 00 72 65 74 75 |.Len.X.%|Len.retu|
|00001af0| 72 6e 73 20 74 68 65 20 | 73 74 72 69 6e 67 20 6c |rns the |string l|
|00001b00| 65 6e 67 74 68 20 6f 66 | 20 69 74 73 20 61 72 67 |ength of| its arg|
|00001b10| 75 6d 65 6e 74 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ument...|.Basic S|
|00001b20| 79 6e 74 61 78 3a 0d 0a | 25 4c 65 6e 28 29 0d 0a |yntax:..|%Len()..|
|00001b30| 00 25 4c 65 6e 28 29 00 | 4d 61 78 00 59 00 25 4d |.%Len().|Max.Y.%M|
|00001b40| 61 78 28 29 00 72 65 74 | 75 72 6e 73 20 6d 61 78 |ax().ret|urns max|
|00001b50| 69 6d 75 6d 20 6f 66 20 | 74 77 6f 20 61 72 67 75 |imum of |two argu|
|00001b60| 6d 65 6e 74 73 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ments...|.Basic S|
|00001b70| 79 6e 74 61 78 3a 0d 0a | 25 4d 61 78 28 3c 76 61 |yntax:..|%Max(<va|
|00001b80| 6c 31 3e 2c 3c 76 61 6c | 32 3e 29 0d 0a 00 25 4d |l1>,<val|2>)...%M|
|00001b90| 61 78 28 2c 29 00 4d 69 | 6e 00 5a 00 25 4d 69 6e |ax(,).Mi|n.Z.%Min|
|00001ba0| 00 72 65 74 75 72 6e 73 | 20 6d 69 6e 69 6d 75 6d |.returns| minimum|
|00001bb0| 20 6f 66 20 74 77 6f 20 | 61 72 67 75 6d 65 6e 74 | of two |argument|
|00001bc0| 73 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |s....Bas|ic Synta|
|00001bd0| 78 3a 0d 0a 25 4d 69 6e | 28 3c 76 61 6c 31 3e 2c |x:..%Min|(<val1>,|
|00001be0| 3c 76 61 6c 32 3e 29 0d | 0a 00 25 4d 69 6e 28 2c |<val2>).|..%Min(,|
|00001bf0| 29 00 53 75 62 73 74 69 | 74 75 74 65 00 5b 00 25 |).Substi|tute.[.%|
|00001c00| 53 75 62 73 74 69 74 75 | 74 65 00 73 75 62 73 74 |Substitu|te.subst|
|00001c10| 69 74 75 74 65 73 20 67 | 69 76 65 6e 20 70 61 74 |itutes g|iven pat|
|00001c20| 74 65 72 6e 28 32 6e 64 | 20 61 72 67 29 0d 0a 77 |tern(2nd| arg)..w|
|00001c30| 69 74 68 20 67 69 76 65 | 6e 20 73 75 62 73 74 69 |ith give|n substi|
|00001c40| 74 75 74 65 20 73 74 72 | 69 6e 67 28 33 72 64 20 |tute str|ing(3rd |
|00001c50| 61 72 67 29 0d 0a 69 6e | 20 67 69 76 65 6e 20 73 |arg)..in| given s|
|00001c60| 74 72 69 6e 67 28 31 73 | 74 20 61 72 67 29 0d 0a |tring(1s|t arg)..|
|00001c70| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 20 45 |..Basic |Syntax E|
|00001c80| 78 61 6d 70 6c 65 3a 0d | 0a 25 53 75 62 73 74 69 |xample:.|.%Substi|
|00001c90| 74 75 74 65 28 3c 76 61 | 6c 75 65 3e 2c 3c 70 61 |tute(<va|lue>,<pa|
|00001ca0| 74 74 65 72 6e 3e 2c 3c | 73 75 62 73 74 69 74 75 |ttern>,<|substitu|
|00001cb0| 74 65 3e 29 0d 0a 0d 0a | 00 25 53 75 62 73 74 69 |te>)....|.%Substi|
|00001cc0| 74 75 74 65 28 2c 2c 29 | 00 56 61 6c 69 64 61 74 |tute(,,)|.Validat|
|00001cd0| 69 6f 6e 52 75 6c 65 00 | 5c 00 25 56 61 6c 69 64 |ionRule.|\.%Valid|
|00001ce0| 61 74 69 6f 6e 52 75 6c | 65 00 72 65 74 75 72 6e |ationRul|e.return|
|00001cf0| 73 20 61 20 76 61 6c 69 | 64 61 74 69 6f 6e 27 73 |s a vali|dation's|
|00001d00| 20 73 65 72 76 65 72 2d | 73 69 64 65 20 72 75 6c | server-|side rul|
|00001d10| 65 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |e....Bas|ic Synta|
|00001d20| 78 3a 0d 0a 25 56 61 6c | 69 64 61 74 69 6f 6e 52 |x:..%Val|idationR|
|00001d30| 75 6c 65 28 3c 76 61 6c | 69 64 61 74 69 6f 6e 20 |ule(<val|idation |
|00001d40| 6e 61 6d 65 3e 29 20 6f | 72 0d 0a 25 56 61 6c 69 |name>) o|r..%Vali|
|00001d50| 64 61 74 69 6f 6e 52 75 | 6c 65 0d 0a 0d 0a 55 73 |dationRu|le....Us|
|00001d60| 61 67 65 20 43 6f 6e 74 | 65 78 74 3a 0d 0a 20 20 |age Cont|ext:.. |
|00001d70| 20 20 25 56 61 6c 69 64 | 61 74 69 6f 6e 52 75 6c | %Valid|ationRul|
|00001d80| 65 28 3c 76 61 6c 69 64 | 61 74 69 6f 6e 20 6e 61 |e(<valid|ation na|
|00001d90| 6d 65 3e 29 20 2d 20 61 | 6e 79 77 68 65 72 65 0d |me>) - a|nywhere.|
|00001da0| 0a 20 20 20 20 25 56 61 | 6c 69 64 61 74 69 6f 6e |. %Va|lidation|
|00001db0| 52 75 6c 65 20 2d 20 77 | 69 74 68 69 6e 20 74 68 |Rule - w|ithin th|
|00001dc0| 65 20 73 63 6f 70 65 20 | 6f 66 20 61 20 76 61 6c |e scope |of a val|
|00001dd0| 69 64 61 74 69 6f 6e 0d | 0a 00 25 56 61 6c 69 64 |idation.|..%Valid|
|00001de0| 61 74 69 6f 6e 52 75 6c | 65 00 49 6e 63 6c 75 64 |ationRul|e.Includ|
|00001df0| 65 00 5d 00 25 49 6e 63 | 6c 75 64 65 00 42 61 73 |e.].%Inc|lude.Bas|
|00001e00| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 49 6e 63 |ic Synta|x:..%Inc|
|00001e10| 6c 75 64 65 28 22 3c 74 | 65 6d 70 6c 61 74 65 20 |lude("<t|emplate |
|00001e20| 6f 72 20 70 61 74 68 20 | 6e 61 6d 65 3e 22 29 0d |or path |name>").|
|00001e30| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00001e40| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 49 6e 63 6c 75 |Example:|..%Inclu|
|00001e50| 64 65 28 22 63 3a 5c 65 | 72 77 69 6e 5c 74 72 69 |de("c:\e|rwin\tri|
|00001e60| 67 67 65 72 2e 74 64 6c | 22 29 00 25 49 6e 63 6c |gger.tdl|").%Incl|
|00001e70| 75 64 65 28 22 22 29 00 | 45 6e 74 69 74 79 49 64 |ude("").|EntityId|
|00001e80| 00 5e 00 25 45 6e 74 69 | 74 79 49 64 00 42 61 73 |.^.%Enti|tyId.Bas|
|00001e90| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 45 6e 74 |ic Synta|x:..%Ent|
|00001ea0| 69 74 79 49 64 28 29 0d | 0a 0d 0a 42 61 73 69 63 |ityId().|...Basic|
|00001eb0| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00001ec0| 0d 0a 25 45 6e 74 69 74 | 79 49 64 28 29 0d 0a 45 |..%Entit|yId()..E|
|00001ed0| 78 70 61 6e 73 69 6f 6e | 3a 31 0d 0a 0d 0a 46 75 |xpansion|:1....Fu|
|00001ee0| 6c 6c 20 53 79 6e 74 61 | 78 3a 0d 0a 25 45 6e 74 |ll Synta|x:..%Ent|
|00001ef0| 69 74 79 49 64 28 3c 74 | 61 62 6c 65 3e 29 0d 0a |ityId(<t|able>)..|
|00001f00| 0d 0a 46 75 6c 6c 20 53 | 79 6e 74 61 78 20 45 78 |..Full S|yntax Ex|
|00001f10| 61 6d 70 6c 65 3a 0d 0a | 25 45 6e 74 69 74 79 49 |ample:..|%EntityI|
|00001f20| 64 28 25 50 61 72 65 6e | 74 29 0d 0a 45 78 70 61 |d(%Paren|t)..Expa|
|00001f30| 6e 73 69 6f 6e 3a 31 00 | 25 45 6e 74 69 74 79 49 |nsion:1.|%EntityI|
|00001f40| 64 28 29 00 41 74 74 49 | 64 00 5f 00 25 41 74 74 |d().AttI|d._.%Att|
|00001f50| 49 64 00 42 61 73 69 63 | 20 53 79 6e 74 61 78 3a |Id.Basic| Syntax:|
|00001f60| 0d 0a 25 41 74 74 49 64 | 0d 0a 0d 0a 42 61 73 69 |..%AttId|....Basi|
|00001f70| 63 20 53 79 6e 74 61 78 | 20 45 78 61 6d 70 6c 65 |c Syntax| Example|
|00001f80| 3a 0d 0a 25 41 74 74 49 | 64 0d 0a 45 78 70 61 6e |:..%AttI|d..Expan|
|00001f90| 73 69 6f 6e 3a 31 00 25 | 41 74 74 49 64 00 45 6e |sion:1.%|AttId.En|
|00001fa0| 74 69 74 79 4e 61 6d 65 | 00 60 00 25 45 6e 74 69 |tityName|.`.%Enti|
|00001fb0| 74 79 4e 61 6d 65 00 42 | 61 73 69 63 20 53 79 6e |tyName.B|asic Syn|
|00001fc0| 74 61 78 3a 0d 0a 25 45 | 6e 74 69 74 79 4e 61 6d |tax:..%E|ntityNam|
|00001fd0| 65 28 29 0d 0a 0d 0a 42 | 61 73 69 63 20 53 79 6e |e()....B|asic Syn|
|00001fe0| 74 61 78 20 45 78 61 6d | 70 6c 65 3a 0d 0a 25 45 |tax Exam|ple:..%E|
|00001ff0| 6e 74 69 74 79 4e 61 6d | 65 28 29 0d 0a 45 78 70 |ntityNam|e()..Exp|
|00002000| 61 6e 73 69 6f 6e 3a 4d | 4f 56 49 45 20 52 45 4e |ansion:M|OVIE REN|
|00002010| 54 41 4c 20 52 45 43 4f | 52 44 0d 0a 0d 0a 46 75 |TAL RECO|RD....Fu|
|00002020| 6c 6c 20 53 79 6e 74 61 | 78 3a 0d 0a 25 45 6e 74 |ll Synta|x:..%Ent|
|00002030| 69 74 79 4e 61 6d 65 28 | 3c 74 61 62 6c 65 3e 29 |ityName(|<table>)|
|00002040| 0d 0a 0d 0a 46 75 6c 6c | 20 53 79 6e 74 61 78 20 |....Full| Syntax |
|00002050| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 45 6e 74 69 74 |Example:|..%Entit|
|00002060| 79 4e 61 6d 65 28 25 50 | 61 72 65 6e 74 29 0d 0a |yName(%P|arent)..|
|00002070| 45 78 70 61 6e 73 69 6f | 6e 3a 4d 4f 56 49 45 20 |Expansio|n:MOVIE |
|00002080| 43 4f 50 59 00 25 45 6e | 74 69 74 79 4e 61 6d 65 |COPY.%En|tityName|
|00002090| 28 29 00 52 65 6c 49 64 | 00 61 00 25 52 65 6c 49 |().RelId|.a.%RelI|
|000020a0| 64 00 42 61 73 69 63 20 | 53 79 6e 74 61 78 3a 0d |d.Basic |Syntax:.|
|000020b0| 0a 25 52 65 6c 49 64 0d | 0a 0d 0a 42 61 73 69 63 |.%RelId.|...Basic|
|000020c0| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|000020d0| 0d 0a 25 52 65 6c 49 64 | 0d 0a 45 78 70 61 6e 73 |..%RelId|..Expans|
|000020e0| 69 6f 6e 3a 31 00 25 52 | 65 6c 49 64 00 41 74 74 |ion:1.%R|elId.Att|
|000020f0| 49 73 52 6f 6c 65 6e 61 | 6d 65 64 00 62 00 25 41 |IsRolena|med.b.%A|
|00002100| 74 74 49 73 52 6f 6c 65 | 6e 61 6d 65 64 00 42 61 |ttIsRole|named.Ba|
|00002110| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 41 74 |sic Synt|ax:..%At|
|00002120| 74 49 73 52 6f 6c 65 6e | 61 6d 65 64 0d 0a 0d 0a |tIsRolen|amed....|
|00002130| 42 61 73 69 63 20 53 79 | 6e 74 61 78 20 45 78 61 |Basic Sy|ntax Exa|
|00002140| 6d 70 6c 65 3a 0d 0a 25 | 46 6f 72 45 61 63 68 41 |mple:..%|ForEachA|
|00002150| 74 74 28 29 20 7b 0d 0a | 20 20 20 20 25 49 66 28 |tt() {..| %If(|
|00002160| 25 41 74 74 49 73 52 6f | 6c 65 6e 61 6d 65 64 29 |%AttIsRo|lenamed)|
|00002170| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 25 41 74 74 | {.. | %Att|
|00002180| 4e 61 6d 65 7d 0d 0a 7d | 0d 0a 0d 0a 45 78 70 61 |Name}..}|....Expa|
|00002190| 6e 73 69 6f 6e 3a 0d 0a | 72 65 6e 74 69 6e 67 5f |nsion:..|renting_|
|000021a0| 63 75 73 74 6f 6d 65 72 | 0d 0a 00 25 41 74 74 49 |customer|...%AttI|
|000021b0| 73 52 6f 6c 65 6e 61 6d | 65 64 00 52 65 6c 54 79 |sRolenam|ed.RelTy|
|000021c0| 70 65 00 63 00 25 52 65 | 6c 54 79 70 65 00 42 61 |pe.c.%Re|lType.Ba|
|000021d0| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 52 65 |sic Synt|ax:..%Re|
|000021e0| 6c 54 79 70 65 0d 0a 0d | 0a 42 61 73 69 63 20 53 |lType...|.Basic S|
|000021f0| 79 6e 74 61 78 20 45 78 | 61 6d 70 6c 65 3a 0d 0a |yntax Ex|ample:..|
|00002200| 25 52 65 6c 54 79 70 65 | 0d 0a 45 78 70 61 6e 73 |%RelType|..Expans|
|00002210| 69 6f 6e 3a 52 54 5f 49 | 44 00 25 52 65 6c 54 79 |ion:RT_I|D.%RelTy|
|00002220| 70 65 00 52 65 6c 49 73 | 4e 6f 6e 75 6c 6c 00 64 |pe.RelIs|Nonull.d|
|00002230| 00 25 52 65 6c 49 73 4e | 6f 6e 75 6c 6c 00 42 61 |.%RelIsN|onull.Ba|
|00002240| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 52 65 |sic Synt|ax:..%Re|
|00002250| 6c 49 73 4e 6f 6e 75 6c | 6c 0d 0a 0d 0a 42 61 73 |lIsNonul|l....Bas|
|00002260| 69 63 20 53 79 6e 74 61 | 78 20 45 78 61 6d 70 6c |ic Synta|x Exampl|
|00002270| 65 3a 0d 0a 25 49 66 28 | 25 52 65 6c 49 73 4e 6f |e:..%If(|%RelIsNo|
|00002280| 6e 75 6c 6c 29 20 7b 0d | 0a 20 20 20 25 56 65 72 |null) {.|. %Ver|
|00002290| 62 50 68 72 61 73 65 7d | 0d 0a 7d 0d 0a 0d 0a 45 |bPhrase}|..}....E|
|000022a0| 78 70 61 6e 73 69 6f 6e | 3a 0d 0a 69 73 5f 72 65 |xpansion|:..is_re|
|000022b0| 6e 74 65 64 5f 75 6e 64 | 65 72 0d 0a 00 25 52 65 |nted_und|er...%Re|
|000022c0| 6c 49 73 4e 6f 6e 75 6c | 6c 00 4f 6c 64 00 65 00 |lIsNonul|l.Old.e.|
|000022d0| 25 4f 6c 64 00 42 61 73 | 69 63 20 53 79 6e 74 61 |%Old.Bas|ic Synta|
|000022e0| 78 3a 0d 0a 25 4f 6c 64 | 0d 0a 0d 0a 42 61 73 69 |x:..%Old|....Basi|
|000022f0| 63 20 53 79 6e 74 61 78 | 20 45 78 61 6d 70 6c 65 |c Syntax| Example|
|00002300| 3a 0d 0a 3a 25 4f 6c 64 | 0d 0a 0d 0a 45 78 70 61 |:..:%Old|....Expa|
|00002310| 6e 73 69 6f 6e 3a 0d 0a | 3a 6f 6c 64 0d 0a 00 25 |nsion:..|:old...%|
|00002320| 4f 6c 64 00 4e 65 77 00 | 66 00 25 4e 65 77 00 42 |Old.New.|f.%New.B|
|00002330| 61 73 69 63 20 53 79 6e | 74 61 78 3a 0d 0a 25 4e |asic Syn|tax:..%N|
|00002340| 65 77 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |ew....Ba|sic Synt|
|00002350| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 3a 25 4e |ax Examp|le:..:%N|
|00002360| 65 77 0d 0a 0d 0a 45 78 | 70 61 6e 73 69 6f 6e 3a |ew....Ex|pansion:|
|00002370| 0d 0a 3a 6e 65 77 0d 0a | 00 25 4e 65 77 00 50 68 |..:new..|.%New.Ph|
|00002380| 79 73 50 72 6f 70 47 72 | 6f 75 70 00 67 00 00 00 |ysPropGr|oup.g...|
|00002390| 00 50 68 79 73 50 72 6f | 70 4e 61 6d 65 00 68 00 |.PhysPro|pName.h.|
|000023a0| 00 00 00 50 68 79 73 50 | 72 6f 70 56 61 6c 00 69 |...PhysP|ropVal.i|
|000023b0| 00 00 00 00 50 68 79 73 | 50 72 6f 70 00 6a 00 00 |....Phys|Prop.j..|
|000023c0| 00 00 44 70 6f 4e 61 6d | 65 00 6b 00 00 00 00 46 |..DpoNam|e.k....F|
|000023d0| 6f 72 45 61 63 68 50 68 | 79 73 50 72 6f 70 00 6c |orEachPh|ysProp.l|
|000023e0| 00 00 00 00 46 6f 72 45 | 61 63 68 43 6f 6c 50 68 |....ForE|achColPh|
|000023f0| 79 73 50 72 6f 70 00 6d | 00 00 00 00 54 65 6d 70 |ysProp.m|....Temp|
|00002400| 6c 61 74 65 4e 61 6d 65 | 00 6e 00 25 54 65 6d 70 |lateName|.n.%Temp|
|00002410| 6c 61 74 65 4e 61 6d 65 | 00 42 61 73 69 63 20 53 |lateName|.Basic S|
|00002420| 79 6e 74 61 78 3a 0d 0a | 25 54 65 6d 70 6c 61 74 |yntax:..|%Templat|
|00002430| 65 4e 61 6d 65 0d 0a 0d | 0a 42 61 73 69 63 20 53 |eName...|.Basic S|
|00002440| 79 6e 74 61 78 20 45 78 | 61 6d 70 6c 65 3a 0d 0a |yntax Ex|ample:..|
|00002450| 25 54 65 6d 70 6c 61 74 | 65 4e 61 6d 65 0d 0a 45 |%Templat|eName..E|
|00002460| 78 70 61 6e 73 69 6f 6e | 3a 0d 0a 73 70 5f 4d 4f |xpansion|:..sp_MO|
|00002470| 56 49 45 5f 52 45 4e 54 | 41 4c 5f 52 45 43 4f 52 |VIE_RENT|AL_RECOR|
|00002480| 00 25 54 65 6d 70 6c 61 | 74 65 4e 61 6d 65 00 55 |.%Templa|teName.U|
|00002490| 70 70 65 72 00 6f 00 25 | 55 70 70 65 72 00 63 6f |pper.o.%|Upper.co|
|000024a0| 6e 76 65 72 74 73 20 69 | 74 73 20 61 72 67 75 6d |nverts i|ts argum|
|000024b0| 65 6e 74 20 74 6f 20 55 | 50 50 45 52 20 63 61 73 |ent to U|PPER cas|
|000024c0| 65 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |e....Bas|ic Synta|
|000024d0| 78 3a 0d 0a 25 55 70 70 | 65 72 28 3c 6d 61 63 72 |x:..%Upp|er(<macr|
|000024e0| 6f 20 63 6f 64 65 3e 29 | 0d 0a 00 25 55 70 70 65 |o code>)|...%Uppe|
|000024f0| 72 28 29 00 4c 6f 77 65 | 72 00 70 00 25 4c 6f 77 |r().Lowe|r.p.%Low|
|00002500| 65 72 00 63 6f 6e 76 65 | 72 74 73 20 69 74 73 20 |er.conve|rts its |
|00002510| 61 72 67 75 6d 65 6e 74 | 20 74 6f 20 6c 6f 77 65 |argument| to lowe|
|00002520| 72 20 63 61 73 65 0d 0a | 0d 0a 42 61 73 69 63 20 |r case..|..Basic |
|00002530| 53 79 6e 74 61 78 3a 0d | 0a 25 4c 6f 77 65 72 28 |Syntax:.|.%Lower(|
|00002540| 3c 6d 61 63 72 6f 20 63 | 6f 64 65 3e 29 0d 0a 00 |<macro c|ode>)...|
|00002550| 25 4c 6f 77 65 72 28 29 | 00 44 42 4d 53 44 65 6c |%Lower()|.DBMSDel|
|00002560| 69 6d 00 71 00 25 44 42 | 4d 53 44 65 6c 69 6d 00 |im.q.%DB|MSDelim.|
|00002570| 72 65 74 75 72 6e 73 20 | 74 68 65 20 44 42 4d 53 |returns |the DBMS|
|00002580| 27 73 20 73 74 61 74 65 | 6d 65 6e 74 20 64 65 6c |'s state|ment del|
|00002590| 69 6d 69 74 65 72 0d 0a | 00 25 44 42 4d 53 44 65 |imiter..|.%DBMSDe|
|000025a0| 6c 69 6d 00 44 42 4d 53 | 54 72 69 67 67 65 72 44 |lim.DBMS|TriggerD|
|000025b0| 65 6c 69 6d 00 72 00 25 | 44 42 4d 53 54 72 69 67 |elim.r.%|DBMSTrig|
|000025c0| 67 65 72 44 65 6c 69 6d | 00 61 64 64 73 20 74 68 |gerDelim|.adds th|
|000025d0| 65 20 74 72 69 67 67 65 | 72 20 64 65 6c 69 6d 65 |e trigge|r delime|
|000025e0| 74 65 72 20 73 74 72 69 | 6e 67 73 0d 0a 25 44 42 |ter stri|ngs..%DB|
|000025f0| 4d 53 54 72 69 67 67 65 | 72 44 65 6c 69 6d 0d 0a |MSTrigge|rDelim..|
|00002600| 0d 0a 00 25 44 42 4d 53 | 54 72 69 67 67 65 72 44 |...%DBMS|TriggerD|
|00002610| 65 6c 69 6d 00 44 42 4d | 53 00 73 00 25 44 42 4d |elim.DBM|S.s.%DBM|
|00002620| 53 00 72 65 74 75 72 6e | 73 20 74 68 65 20 44 42 |S.return|s the DB|
|00002630| 4d 53 20 6e 61 6d 65 0d | 0a 00 25 44 42 4d 53 00 |MS name.|..%DBMS.|
|00002640| 46 6f 72 45 61 63 68 45 | 6e 74 69 74 79 00 74 00 |ForEachE|ntity.t.|
|00002650| 25 46 6f 72 45 61 63 68 | 45 6e 74 69 74 79 28 29 |%ForEach|Entity()|
|00002660| 00 4c 6f 6f 70 73 20 74 | 68 72 6f 75 67 68 20 61 |.Loops t|hrough a|
|00002670| 6c 6c 20 65 6e 74 69 74 | 69 65 73 20 69 6e 20 74 |ll entit|ies in t|
|00002680| 68 65 0d 0a 63 75 72 72 | 65 6e 74 20 73 75 62 6a |he..curr|ent subj|
|00002690| 65 63 74 20 61 72 65 61 | 2c 20 65 76 61 6c 75 61 |ect area|, evalua|
|000026a0| 74 69 6e 67 20 74 68 65 | 0d 0a 6d 61 63 72 6f 20 |ting the|..macro |
|000026b0| 63 6f 64 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 |code bet|ween the|
|000026c0| 20 62 72 61 63 65 73 0d | 0a 0d 0a 53 79 6e 74 61 | braces.|...Synta|
|000026d0| 78 3a 0d 0a 25 46 6f 72 | 45 61 63 68 45 6e 74 69 |x:..%For|EachEnti|
|000026e0| 74 79 28 5b 3c 74 61 62 | 6c 65 20 6e 61 6d 65 3e |ty([<tab|le name>|
|000026f0| 5d 29 20 7b 0d 0a 7d 0d | 0a 0d 0a 42 61 73 69 63 |]) {..}.|...Basic|
|00002700| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00002710| 0d 0a 25 46 6f 72 45 61 | 63 68 45 6e 74 69 74 79 |..%ForEa|chEntity|
|00002720| 28 29 20 7b 0d 0a 20 20 | 25 54 61 62 6c 65 4e 61 |() {.. |%TableNa|
|00002730| 6d 65 0d 0a 7d 0d 0a 0d | 0a 45 78 70 61 6e 73 69 |me..}...|.Expansi|
|00002740| 6f 6e 3a 0d 0a 4d 4f 56 | 49 45 5f 43 4f 50 59 0d |on:..MOV|IE_COPY.|
|00002750| 0a 4d 4f 56 49 45 5f 52 | 45 4e 54 41 4c 5f 52 45 |.MOVIE_R|ENTAL_RE|
|00002760| 43 4f 52 00 25 46 6f 72 | 45 61 63 68 45 6e 74 69 |COR.%For|EachEnti|
|00002770| 74 79 28 29 20 7b 0d 0a | 7d 00 46 6f 72 45 61 63 |ty() {..|}.ForEac|
|00002780| 68 56 61 6c 69 64 61 74 | 69 6f 6e 00 75 00 25 46 |hValidat|ion.u.%F|
|00002790| 6f 72 45 61 63 68 56 61 | 6c 69 64 61 74 69 6f 6e |orEachVa|lidation|
|000027a0| 28 29 00 4c 6f 6f 70 73 | 20 74 68 72 6f 75 67 68 |().Loops| through|
|000027b0| 20 61 6c 6c 20 76 61 6c | 69 64 61 74 69 6f 6e 20 | all val|idation |
|000027c0| 72 75 6c 65 73 2c 0d 0a | 65 76 61 6c 75 61 74 69 |rules,..|evaluati|
|000027d0| 6e 67 20 74 68 65 20 6d | 61 63 72 6f 20 63 6f 64 |ng the m|acro cod|
|000027e0| 65 20 62 65 74 77 65 65 | 6e 20 74 68 65 0d 0a 62 |e betwee|n the..b|
|000027f0| 72 61 63 65 73 20 77 69 | 74 68 20 72 65 73 70 65 |races wi|th respe|
|00002800| 63 74 20 74 6f 20 65 61 | 63 68 20 76 61 6c 69 64 |ct to ea|ch valid|
|00002810| 61 74 69 6f 6e 2e 0d 0a | 0d 0a 42 61 73 69 63 20 |ation...|..Basic |
|00002820| 53 79 6e 74 61 78 3a 0d | 0a 25 46 6f 72 45 61 63 |Syntax:.|.%ForEac|
|00002830| 68 56 61 6c 69 64 61 74 | 69 6f 6e 28 29 20 7b 0d |hValidat|ion() {.|
|00002840| 0a 7d 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |.}....Ba|sic Synt|
|00002850| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|00002860| 72 45 61 63 68 56 61 6c | 69 64 61 74 69 6f 6e 28 |rEachVal|idation(|
|00002870| 29 20 7b 0d 0a 20 20 25 | 56 61 6c 69 64 61 74 69 |) {.. %|Validati|
|00002880| 6f 6e 4e 61 6d 65 0d 0a | 7d 0d 0a 00 25 46 6f 72 |onName..|}...%For|
|00002890| 45 61 63 68 56 61 6c 69 | 64 61 74 69 6f 6e 28 29 |EachVali|dation()|
|000028a0| 20 7b 0d 0a 7d 00 56 61 | 6c 69 64 61 74 69 6f 6e | {..}.Va|lidation|
|000028b0| 4e 61 6d 65 00 76 00 25 | 56 61 6c 69 64 61 74 69 |Name.v.%|Validati|
|000028c0| 6f 6e 4e 61 6d 65 00 72 | 65 74 75 72 6e 73 20 61 |onName.r|eturns a|
|000028d0| 6e 20 45 52 77 69 6e 20 | 76 61 6c 69 64 61 74 69 |n ERwin |validati|
|000028e0| 6f 6e 27 73 20 6e 61 6d | 65 0d 0a 0d 0a 42 61 73 |on's nam|e....Bas|
|000028f0| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 56 61 6c |ic Synta|x:..%Val|
|00002900| 69 64 61 74 69 6f 6e 4e | 61 6d 65 0d 0a 0d 0a 55 |idationN|ame....U|
|00002910| 73 61 67 65 20 43 6f 6e | 74 65 78 74 3a 0d 0a 20 |sage Con|text:.. |
|00002920| 20 20 20 2d 20 77 69 74 | 68 69 6e 20 74 68 65 20 | - wit|hin the |
|00002930| 73 63 6f 70 65 20 6f 66 | 20 61 0d 0a 20 20 20 20 |scope of| a.. |
|00002940| 76 61 6c 69 64 61 74 69 | 6f 6e 20 28 69 2e 65 2e |validati|on (i.e.|
|00002950| 20 25 46 6f 72 45 61 63 | 68 56 61 6c 69 64 61 74 | %ForEac|hValidat|
|00002960| 69 6f 6e 29 0d 0a 00 25 | 56 61 6c 69 64 61 74 69 |ion)...%|Validati|
|00002970| 6f 6e 4e 61 6d 65 00 46 | 6f 72 45 61 63 68 44 65 |onName.F|orEachDe|
|00002980| 66 61 75 6c 74 00 77 00 | 25 46 6f 72 45 61 63 68 |fault.w.|%ForEach|
|00002990| 44 65 66 61 75 6c 74 28 | 29 00 4c 6f 6f 70 73 20 |Default(|).Loops |
|000029a0| 74 68 72 6f 75 67 68 20 | 61 6c 6c 20 45 52 77 69 |through |all ERwi|
|000029b0| 6e 20 64 65 66 61 75 6c | 74 73 2c 0d 0a 65 76 61 |n defaul|ts,..eva|
|000029c0| 6c 75 61 74 69 6e 67 20 | 74 68 65 20 6d 61 63 72 |luating |the macr|
|000029d0| 6f 20 63 6f 64 65 20 62 | 65 74 77 65 65 6e 20 74 |o code b|etween t|
|000029e0| 68 65 0d 0a 62 72 61 63 | 65 73 20 77 69 74 68 20 |he..brac|es with |
|000029f0| 72 65 73 70 65 63 74 20 | 74 6f 20 65 61 63 68 20 |respect |to each |
|00002a00| 64 65 66 61 75 6c 74 2e | 0d 0a 0d 0a 42 61 73 69 |default.|....Basi|
|00002a10| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 46 6f 72 45 |c Syntax|:..%ForE|
|00002a20| 61 63 68 44 65 66 61 75 | 6c 74 28 29 20 7b 0d 0a |achDefau|lt() {..|
|00002a30| 7d 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |}....Bas|ic Synta|
|00002a40| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 46 6f 72 |x Exampl|e:..%For|
|00002a50| 45 61 63 68 44 65 66 61 | 75 6c 74 28 29 20 7b 0d |EachDefa|ult() {.|
|00002a60| 0a 20 20 25 44 65 66 61 | 75 6c 74 4e 61 6d 65 20 |. %Defa|ultName |
|00002a70| 20 25 44 65 66 61 75 6c | 74 56 61 6c 75 65 0d 0a | %Defaul|tValue..|
|00002a80| 7d 0d 0a 00 25 46 6f 72 | 45 61 63 68 44 65 66 61 |}...%For|EachDefa|
|00002a90| 75 6c 74 28 29 20 7b 0d | 0a 7d 00 44 65 66 61 75 |ult() {.|.}.Defau|
|00002aa0| 6c 74 4e 61 6d 65 00 78 | 00 25 44 65 66 61 75 6c |ltName.x|.%Defaul|
|00002ab0| 74 4e 61 6d 65 00 72 65 | 74 75 72 6e 73 20 61 6e |tName.re|turns an|
|00002ac0| 20 45 52 77 69 6e 20 64 | 65 66 61 75 6c 74 27 73 | ERwin d|efault's|
|00002ad0| 20 6e 61 6d 65 0d 0a 0d | 0a 42 61 73 69 63 20 53 | name...|.Basic S|
|00002ae0| 79 6e 74 61 78 3a 0d 0a | 25 44 65 66 61 75 6c 74 |yntax:..|%Default|
|00002af0| 4e 61 6d 65 0d 0a 0d 0a | 55 73 61 67 65 20 43 6f |Name....|Usage Co|
|00002b00| 6e 74 65 78 74 3a 0d 0a | 20 20 20 20 44 65 66 61 |ntext:..| Defa|
|00002b10| 75 6c 74 4e 61 6d 65 20 | 2d 20 77 69 74 68 69 6e |ultName |- within|
|00002b20| 20 74 68 65 20 73 63 6f | 70 65 20 6f 66 20 61 6e | the sco|pe of an|
|00002b30| 20 45 52 77 69 6e 0d 0a | 20 20 20 20 20 20 20 20 | ERwin..| |
|00002b40| 64 65 66 61 75 6c 74 20 | 28 69 2e 65 2e 20 25 46 |default |(i.e. %F|
|00002b50| 6f 72 45 61 63 68 44 65 | 66 61 75 6c 74 29 0d 0a |orEachDe|fault)..|
|00002b60| 00 25 44 65 66 61 75 6c | 74 4e 61 6d 65 00 44 65 |.%Defaul|tName.De|
|00002b70| 66 61 75 6c 74 56 61 6c | 75 65 00 79 00 25 44 65 |faultVal|ue.y.%De|
|00002b80| 66 61 75 6c 74 56 61 6c | 75 65 00 72 65 74 75 72 |faultVal|ue.retur|
|00002b90| 6e 73 20 61 6e 20 45 52 | 77 69 6e 20 64 65 66 61 |ns an ER|win defa|
|00002ba0| 75 6c 74 27 73 20 76 61 | 6c 75 65 0d 0a 0d 0a 42 |ult's va|lue....B|
|00002bb0| 61 73 69 63 20 53 79 6e | 74 61 78 3a 0d 0a 25 44 |asic Syn|tax:..%D|
|00002bc0| 65 66 61 75 6c 74 56 61 | 6c 75 65 28 3c 64 65 66 |efaultVa|lue(<def|
|00002bd0| 61 75 6c 74 27 73 20 6e | 61 6d 65 3e 29 20 6f 72 |ault's n|ame>) or|
|00002be0| 0d 0a 25 44 65 66 61 75 | 6c 74 56 61 6c 75 65 0d |..%Defau|ltValue.|
|00002bf0| 0a 0d 0a 55 73 61 67 65 | 20 43 6f 6e 74 65 78 74 |...Usage| Context|
|00002c00| 3a 0d 0a 20 20 20 20 25 | 44 65 66 61 75 6c 74 56 |:.. %|DefaultV|
|00002c10| 61 6c 75 65 28 3c 64 65 | 66 61 75 6c 74 27 73 20 |alue(<de|fault's |
|00002c20| 6e 61 6d 65 3e 29 20 2d | 20 61 6e 79 77 68 65 72 |name>) -| anywher|
|00002c30| 65 0d 0a 20 20 20 20 25 | 44 65 66 61 75 6c 74 56 |e.. %|DefaultV|
|00002c40| 61 6c 75 65 20 2d 20 77 | 69 74 68 69 6e 20 74 68 |alue - w|ithin th|
|00002c50| 65 20 73 63 6f 70 65 20 | 6f 66 20 61 6e 0d 0a 20 |e scope |of an.. |
|00002c60| 20 20 20 20 20 20 20 45 | 52 77 69 6e 20 64 65 66 | E|Rwin def|
|00002c70| 61 75 6c 74 20 28 69 2e | 65 2e 20 25 46 6f 72 45 |ault (i.|e. %ForE|
|00002c80| 61 63 68 44 65 66 61 75 | 6c 74 29 0d 0a 00 25 44 |achDefau|lt)...%D|
|00002c90| 65 66 61 75 6c 74 56 61 | 6c 75 65 00 46 6f 72 45 |efaultVa|lue.ForE|
|00002ca0| 61 63 68 44 6f 6d 61 69 | 6e 00 7a 00 25 46 6f 72 |achDomai|n.z.%For|
|00002cb0| 45 61 63 68 44 6f 6d 61 | 69 6e 28 29 00 4c 6f 6f |EachDoma|in().Loo|
|00002cc0| 70 73 20 74 68 72 6f 75 | 67 68 20 61 6c 6c 20 45 |ps throu|gh all E|
|00002cd0| 52 77 69 6e 20 64 6f 6d | 61 69 6e 73 20 74 68 61 |Rwin dom|ains tha|
|00002ce0| 74 0d 0a 64 65 66 69 6e | 65 20 64 61 74 61 74 79 |t..defin|e dataty|
|00002cf0| 70 65 73 2c 20 65 76 61 | 6c 75 61 74 69 6e 67 20 |pes, eva|luating |
|00002d00| 74 68 65 0d 0a 6d 61 63 | 72 6f 20 63 6f 64 65 20 |the..mac|ro code |
|00002d10| 62 65 74 77 65 65 6e 20 | 74 68 65 20 62 72 61 63 |between |the brac|
|00002d20| 65 73 0d 0a 77 69 74 68 | 20 72 65 73 70 65 63 74 |es..with| respect|
|00002d30| 20 74 6f 20 65 61 63 68 | 20 64 6f 6d 61 69 6e 2e | to each| domain.|
|00002d40| 0d 0a 0d 0a 42 61 73 69 | 63 20 53 79 6e 74 61 78 |....Basi|c Syntax|
|00002d50| 20 45 78 61 6d 70 6c 65 | 3a 0d 0a 25 46 6f 72 45 | Example|:..%ForE|
|00002d60| 61 63 68 44 6f 6d 61 69 | 6e 28 29 20 7b 0d 0a 20 |achDomai|n() {.. |
|00002d70| 20 25 44 6f 6d 61 69 6e | 4e 61 6d 65 20 25 44 6f | %Domain|Name %Do|
|00002d80| 6d 61 69 6e 44 61 74 61 | 74 79 70 65 20 25 44 6f |mainData|type %Do|
|00002d90| 6d 61 69 6e 4e 75 6c 6c | 0d 0a 20 20 25 44 6f 6d |mainNull|.. %Dom|
|00002da0| 61 69 6e 56 61 6c 69 64 | 61 74 69 6f 6e 20 25 44 |ainValid|ation %D|
|00002db0| 6f 6d 61 69 6e 44 65 66 | 61 75 6c 74 0d 0a 7d 0d |omainDef|ault..}.|
|00002dc0| 0a 00 25 46 6f 72 45 61 | 63 68 44 6f 6d 61 69 6e |..%ForEa|chDomain|
|00002dd0| 28 29 20 7b 0d 0a 7d 00 | 44 6f 6d 61 69 6e 4e 61 |() {..}.|DomainNa|
|00002de0| 6d 65 00 7b 00 25 44 6f | 6d 61 69 6e 4e 61 6d 65 |me.{.%Do|mainName|
|00002df0| 00 72 65 74 75 72 6e 73 | 20 61 6e 20 45 52 77 69 |.returns| an ERwi|
|00002e00| 6e 20 64 6f 6d 61 69 6e | 27 73 20 6e 61 6d 65 0d |n domain|'s name.|
|00002e10| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 3a |...Basic| Syntax:|
|00002e20| 0d 0a 25 44 6f 6d 61 69 | 6e 4e 61 6d 65 5b 28 5b |..%Domai|nName[([|
|00002e30| 4c 6f 67 69 63 61 6c 7c | 50 68 79 73 69 63 61 6c |Logical||Physical|
|00002e40| 5d 29 5d 0d 0a 0d 0a 55 | 73 61 67 65 20 43 6f 6e |])]....U|sage Con|
|00002e50| 74 65 78 74 3a 0d 0a 20 | 20 20 20 44 6f 6d 61 69 |text:.. | Domai|
|00002e60| 6e 4e 61 6d 65 20 2d 20 | 77 69 74 68 69 6e 20 74 |nName - |within t|
|00002e70| 68 65 20 73 63 6f 70 65 | 20 6f 66 20 61 6e 20 45 |he scope| of an E|
|00002e80| 52 77 69 6e 0d 0a 20 20 | 20 20 20 20 20 20 64 6f |Rwin.. | do|
|00002e90| 6d 61 69 6e 20 28 69 2e | 65 2e 20 25 46 6f 72 45 |main (i.|e. %ForE|
|00002ea0| 61 63 68 44 6f 6d 61 69 | 6e 29 0d 0a 00 25 44 6f |achDomai|n)...%Do|
|00002eb0| 6d 61 69 6e 4e 61 6d 65 | 00 44 6f 6d 61 69 6e 44 |mainName|.DomainD|
|00002ec0| 61 74 61 74 79 70 65 00 | 7c 00 25 44 6f 6d 61 69 |atatype.||.%Domai|
|00002ed0| 6e 44 61 74 61 74 79 70 | 65 00 72 65 74 75 72 6e |nDatatyp|e.return|
|00002ee0| 73 20 61 6e 20 45 52 77 | 69 6e 20 64 6f 6d 61 69 |s an ERw|in domai|
|00002ef0| 6e 27 73 20 64 61 74 61 | 74 79 70 65 0d 0a 0d 0a |n's data|type....|
|00002f00| 42 61 73 69 63 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |Basic Sy|ntax:..%|
|00002f10| 44 6f 6d 61 69 6e 44 61 | 74 61 74 79 70 65 28 3c |DomainDa|tatype(<|
|00002f20| 64 6f 6d 61 69 6e 27 73 | 20 6e 61 6d 65 3e 29 20 |domain's| name>) |
|00002f30| 6f 72 0d 0a 25 44 6f 6d | 61 69 6e 44 61 74 61 74 |or..%Dom|ainDatat|
|00002f40| 79 70 65 0d 0a 0d 0a 55 | 73 61 67 65 20 43 6f 6e |ype....U|sage Con|
|00002f50| 74 65 78 74 3a 0d 0a 20 | 20 20 20 25 44 6f 6d 61 |text:.. | %Doma|
|00002f60| 69 6e 44 61 74 61 74 79 | 70 65 28 3c 64 6f 6d 61 |inDataty|pe(<doma|
|00002f70| 69 6e 27 73 20 6e 61 6d | 65 3e 29 20 2d 20 61 6e |in's nam|e>) - an|
|00002f80| 79 77 68 65 72 65 0d 0a | 20 20 20 20 25 44 6f 6d |ywhere..| %Dom|
|00002f90| 61 69 6e 44 61 74 61 74 | 79 70 65 20 2d 20 77 69 |ainDatat|ype - wi|
|00002fa0| 74 68 69 6e 20 74 68 65 | 20 73 63 6f 70 65 20 6f |thin the| scope o|
|00002fb0| 66 20 61 6e 0d 0a 20 20 | 20 20 20 20 20 20 45 52 |f an.. | ER|
|00002fc0| 77 69 6e 20 64 6f 6d 61 | 69 6e 20 28 69 2e 65 2e |win doma|in (i.e.|
|00002fd0| 20 25 46 6f 72 45 61 63 | 68 44 6f 6d 61 69 6e 29 | %ForEac|hDomain)|
|00002fe0| 0d 0a 00 25 44 6f 6d 61 | 69 6e 44 61 74 61 74 79 |...%Doma|inDataty|
|00002ff0| 70 65 00 44 6f 6d 61 69 | 6e 4e 75 6c 6c 4f 70 74 |pe.Domai|nNullOpt|
|00003000| 69 6f 6e 00 7d 00 25 44 | 6f 6d 61 69 6e 4e 75 6c |ion.}.%D|omainNul|
|00003010| 6c 4f 70 74 69 6f 6e 00 | 72 65 74 75 72 6e 73 20 |lOption.|returns |
|00003020| 61 6e 20 45 52 77 69 6e | 20 64 6f 6d 61 69 6e 27 |an ERwin| domain'|
|00003030| 73 20 6e 75 6c 6c 20 6f | 70 74 69 6f 6e 0d 0a 0d |s null o|ption...|
|00003040| 0a 42 61 73 69 63 20 53 | 79 6e 74 61 78 3a 0d 0a |.Basic S|yntax:..|
|00003050| 25 44 6f 6d 61 69 6e 4e | 75 6c 6c 4f 70 74 69 6f |%DomainN|ullOptio|
|00003060| 6e 28 3c 64 6f 6d 61 69 | 6e 27 73 20 6e 61 6d 65 |n(<domai|n's name|
|00003070| 3e 29 20 6f 72 0d 0a 25 | 44 6f 6d 61 69 6e 4e 75 |>) or..%|DomainNu|
|00003080| 6c 6c 4f 70 74 69 6f 6e | 0d 0a 0d 0a 55 73 61 67 |llOption|....Usag|
|00003090| 65 20 43 6f 6e 74 65 78 | 74 3a 0d 0a 20 20 20 20 |e Contex|t:.. |
|000030a0| 25 44 6f 6d 61 69 6e 4e | 75 6c 6c 4f 70 74 69 6f |%DomainN|ullOptio|
|000030b0| 6e 28 3c 64 6f 6d 61 69 | 6e 27 73 20 6e 61 6d 65 |n(<domai|n's name|
|000030c0| 3e 29 20 2d 20 61 6e 79 | 77 68 65 72 65 0d 0a 20 |>) - any|where.. |
|000030d0| 20 20 20 25 44 6f 6d 61 | 69 6e 4e 75 6c 6c 4f 70 | %Doma|inNullOp|
|000030e0| 74 69 6f 6e 20 2d 20 77 | 69 74 68 69 6e 20 74 68 |tion - w|ithin th|
|000030f0| 65 20 73 63 6f 70 65 20 | 6f 66 20 61 6e 0d 0a 20 |e scope |of an.. |
|00003100| 20 20 20 20 20 20 20 45 | 52 77 69 6e 20 64 6f 6d | E|Rwin dom|
|00003110| 61 69 6e 20 28 69 2e 65 | 2e 20 25 46 6f 72 45 61 |ain (i.e|. %ForEa|
|00003120| 63 68 44 6f 6d 61 69 6e | 29 0d 0a 00 25 44 6f 6d |chDomain|)...%Dom|
|00003130| 61 69 6e 4e 75 6c 6c 4f | 70 74 69 6f 6e 00 44 6f |ainNullO|ption.Do|
|00003140| 6d 61 69 6e 56 61 6c 69 | 64 61 74 69 6f 6e 00 7e |mainVali|dation.~|
|00003150| 00 25 44 6f 6d 61 69 6e | 56 61 6c 69 64 61 74 69 |.%Domain|Validati|
|00003160| 6f 6e 00 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |on.retur|ns the n|
|00003170| 61 6d 65 20 6f 66 20 74 | 68 65 20 76 61 6c 69 64 |ame of t|he valid|
|00003180| 61 74 69 6f 6e 0d 0a 61 | 74 74 61 63 68 65 64 20 |ation..a|ttached |
|00003190| 74 6f 20 61 6e 20 45 52 | 77 69 6e 20 64 6f 6d 61 |to an ER|win doma|
|000031a0| 69 6e 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |in....Ba|sic Synt|
|000031b0| 61 78 3a 0d 0a 25 44 6f | 6d 61 69 6e 56 61 6c 69 |ax:..%Do|mainVali|
|000031c0| 64 61 74 69 6f 6e 28 3c | 64 6f 6d 61 69 6e 27 73 |dation(<|domain's|
|000031d0| 20 6e 61 6d 65 3e 29 20 | 6f 72 0d 0a 25 44 6f 6d | name>) |or..%Dom|
|000031e0| 61 69 6e 56 61 6c 69 64 | 61 74 69 6f 6e 0d 0a 0d |ainValid|ation...|
|000031f0| 0a 55 73 61 67 65 20 43 | 6f 6e 74 65 78 74 3a 0d |.Usage C|ontext:.|
|00003200| 0a 20 20 20 20 25 44 6f | 6d 61 69 6e 56 61 6c 69 |. %Do|mainVali|
|00003210| 64 61 74 69 6f 6e 28 3c | 64 6f 6d 61 69 6e 27 73 |dation(<|domain's|
|00003220| 20 6e 61 6d 65 3e 29 20 | 2d 20 61 6e 79 77 68 65 | name>) |- anywhe|
|00003230| 72 65 0d 0a 20 20 20 20 | 25 44 6f 6d 61 69 6e 56 |re.. |%DomainV|
|00003240| 61 6c 69 64 61 74 69 6f | 6e 20 2d 20 77 69 74 68 |alidatio|n - with|
|00003250| 69 6e 20 74 68 65 20 73 | 63 6f 70 65 20 6f 66 20 |in the s|cope of |
|00003260| 61 6e 0d 0a 20 20 20 20 | 20 20 20 20 45 52 77 69 |an.. | ERwi|
|00003270| 6e 20 64 6f 6d 61 69 6e | 20 28 69 2e 65 2e 20 25 |n domain| (i.e. %|
|00003280| 46 6f 72 45 61 63 68 44 | 6f 6d 61 69 6e 29 0d 0a |ForEachD|omain)..|
|00003290| 00 25 44 6f 6d 61 69 6e | 56 61 6c 69 64 61 74 69 |.%Domain|Validati|
|000032a0| 6f 6e 00 44 6f 6d 61 69 | 6e 44 65 66 61 75 6c 74 |on.Domai|nDefault|
|000032b0| 00 7f 00 25 44 6f 6d 61 | 69 6e 44 65 66 61 75 6c |...%Doma|inDefaul|
|000032c0| 74 00 72 65 74 75 72 6e | 73 20 74 68 65 20 6e 61 |t.return|s the na|
|000032d0| 6d 65 20 6f 66 20 74 68 | 65 20 64 65 66 61 75 6c |me of th|e defaul|
|000032e0| 74 0d 0a 61 74 74 61 63 | 68 65 64 20 74 6f 20 61 |t..attac|hed to a|
|000032f0| 6e 20 45 52 77 69 6e 20 | 64 6f 6d 61 69 6e 0d 0a |n ERwin |domain..|
|00003300| 0d 0a 42 61 73 69 63 20 | 53 79 6e 74 61 78 3a 0d |..Basic |Syntax:.|
|00003310| 0a 25 44 6f 6d 61 69 6e | 44 65 66 61 75 6c 74 28 |.%Domain|Default(|
|00003320| 3c 64 6f 6d 61 69 6e 27 | 73 20 6e 61 6d 65 3e 29 |<domain'|s name>)|
|00003330| 20 6f 72 0d 0a 25 44 6f | 6d 61 69 6e 44 65 66 61 | or..%Do|mainDefa|
|00003340| 75 6c 74 0d 0a 0d 0a 55 | 73 61 67 65 20 43 6f 6e |ult....U|sage Con|
|00003350| 74 65 78 74 3a 0d 0a 20 | 20 20 20 25 44 6f 6d 61 |text:.. | %Doma|
|00003360| 69 6e 44 65 66 61 75 6c | 74 28 3c 64 6f 6d 61 69 |inDefaul|t(<domai|
|00003370| 6e 27 73 20 6e 61 6d 65 | 3e 29 20 2d 20 61 6e 79 |n's name|>) - any|
|00003380| 77 68 65 72 65 0d 0a 20 | 20 20 20 25 44 6f 6d 61 |where.. | %Doma|
|00003390| 69 6e 44 65 66 61 75 6c | 74 20 2d 20 77 69 74 68 |inDefaul|t - with|
|000033a0| 69 6e 20 74 68 65 20 73 | 63 6f 70 65 20 6f 66 20 |in the s|cope of |
|000033b0| 61 6e 0d 0a 20 20 20 20 | 20 20 20 20 45 52 77 69 |an.. | ERwi|
|000033c0| 6e 20 64 6f 6d 61 69 6e | 20 28 69 2e 65 2e 20 25 |n domain| (i.e. %|
|000033d0| 46 6f 72 45 61 63 68 44 | 6f 6d 61 69 6e 29 0d 0a |ForEachD|omain)..|
|000033e0| 00 25 44 6f 6d 61 69 6e | 44 65 66 61 75 6c 74 00 |.%Domain|Default.|
|000033f0| 44 6f 6d 61 69 6e 44 65 | 66 00 80 00 25 44 6f 6d |DomainDe|f...%Dom|
|00003400| 61 69 6e 44 65 66 00 72 | 65 74 75 72 6e 73 20 74 |ainDef.r|eturns t|
|00003410| 68 65 20 64 65 66 69 6e | 69 74 69 6f 6e 0d 0a 6f |he defin|ition..o|
|00003420| 66 20 74 68 65 20 45 52 | 77 69 6e 20 64 6f 6d 61 |f the ER|win doma|
|00003430| 69 6e 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |in....Ba|sic Synt|
|00003440| 61 78 3a 0d 0a 25 44 6f | 6d 61 69 6e 44 65 66 28 |ax:..%Do|mainDef(|
|00003450| 3c 64 6f 6d 61 69 6e 27 | 73 20 6e 61 6d 65 3e 29 |<domain'|s name>)|
|00003460| 20 6f 72 0d 0a 25 44 6f | 6d 61 69 6e 44 65 66 0d | or..%Do|mainDef.|
|00003470| 0a 0d 0a 55 73 61 67 65 | 20 43 6f 6e 74 65 78 74 |...Usage| Context|
|00003480| 3a 0d 0a 20 20 20 20 25 | 44 6f 6d 61 69 6e 44 65 |:.. %|DomainDe|
|00003490| 66 28 3c 64 6f 6d 61 69 | 6e 27 73 20 6e 61 6d 65 |f(<domai|n's name|
|000034a0| 3e 29 20 2d 20 61 6e 79 | 77 68 65 72 65 0d 0a 20 |>) - any|where.. |
|000034b0| 20 20 20 25 44 6f 6d 61 | 69 6e 44 65 66 20 2d 20 | %Doma|inDef - |
|000034c0| 77 69 74 68 69 6e 20 74 | 68 65 20 73 63 6f 70 65 |within t|he scope|
|000034d0| 20 6f 66 20 61 6e 0d 0a | 20 20 20 20 20 20 20 20 | of an..| |
|000034e0| 45 52 77 69 6e 20 64 6f | 6d 61 69 6e 20 28 69 2e |ERwin do|main (i.|
|000034f0| 65 2e 20 25 46 6f 72 45 | 61 63 68 44 6f 6d 61 69 |e. %ForE|achDomai|
|00003500| 6e 29 0d 0a 00 25 44 6f | 6d 61 69 6e 44 65 66 00 |n)...%Do|mainDef.|
|00003510| 41 74 74 44 6f 6d 61 69 | 6e 00 81 00 25 41 74 74 |AttDomai|n...%Att|
|00003520| 44 6f 6d 61 69 6e 00 72 | 65 74 75 72 6e 73 20 74 |Domain.r|eturns t|
|00003530| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 64 |he name |of the d|
|00003540| 6f 6d 61 69 6e 0d 0a 61 | 74 74 61 63 68 65 64 20 |omain..a|ttached |
|00003550| 74 6f 20 61 6e 20 45 52 | 77 69 6e 20 61 74 74 72 |to an ER|win attr|
|00003560| 69 62 75 74 65 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ibute...|.Basic S|
|00003570| 79 6e 74 61 78 3a 0d 0a | 25 41 74 74 44 6f 6d 61 |yntax:..|%AttDoma|
|00003580| 69 6e 0d 0a 0d 0a 55 73 | 61 67 65 20 43 6f 6e 74 |in....Us|age Cont|
|00003590| 65 78 74 3a 0d 0a 20 20 | 20 20 25 41 74 74 44 6f |ext:.. | %AttDo|
|000035a0| 6d 61 69 6e 20 2d 20 77 | 69 74 68 69 6e 20 74 68 |main - w|ithin th|
|000035b0| 65 20 73 63 6f 70 65 20 | 6f 66 20 61 6e 0d 0a 20 |e scope |of an.. |
|000035c0| 20 20 20 20 20 20 20 45 | 52 77 69 6e 20 61 74 74 | E|Rwin att|
|000035d0| 72 69 62 75 74 65 20 28 | 69 2e 65 2e 20 25 46 6f |ribute (|i.e. %Fo|
|000035e0| 72 45 61 63 68 41 74 74 | 29 0d 0a 00 25 41 74 74 |rEachAtt|)...%Att|
|000035f0| 44 6f 6d 61 69 6e 00 53 | 77 69 74 63 68 00 82 00 |Domain.S|witch...|
|00003600| 25 53 77 69 74 63 68 28 | 29 00 45 76 61 6c 75 61 |%Switch(|).Evalua|
|00003610| 74 65 73 20 74 68 65 20 | 73 77 69 74 63 68 20 61 |tes the |switch a|
|00003620| 72 67 75 6d 65 6e 74 20 | 61 6e 64 20 6d 61 74 63 |rgument |and matc|
|00003630| 68 65 73 0d 0a 74 68 65 | 20 72 65 73 75 6c 74 20 |hes..the| result |
|00003640| 61 67 61 69 6e 73 74 20 | 74 68 65 20 73 70 65 63 |against |the spec|
|00003650| 69 66 69 65 64 20 63 68 | 6f 69 63 65 73 2e 0d 0a |ified ch|oices...|
|00003660| 49 66 20 61 20 6d 61 74 | 63 68 20 69 73 20 66 6f |If a mat|ch is fo|
|00003670| 75 6e 64 20 74 68 65 20 | 63 68 6f 69 63 65 27 73 |und the |choice's|
|00003680| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 0d 0a | corresp|onding..|
|00003690| 6d 61 63 72 6f 20 63 6f | 64 65 20 69 73 20 65 78 |macro co|de is ex|
|000036a0| 70 61 6e 64 65 64 2e 20 | 20 49 66 20 6e 6f 20 6d |panded. | If no m|
|000036b0| 61 74 63 68 20 69 73 20 | 66 6f 75 6e 64 2c 0d 0a |atch is |found,..|
|000036c0| 74 68 65 20 64 65 66 61 | 75 6c 74 27 73 20 6d 61 |the defa|ult's ma|
|000036d0| 63 72 6f 20 63 6f 64 65 | 20 69 73 20 65 78 70 61 |cro code| is expa|
|000036e0| 6e 64 65 64 2e 0d 0a 0d | 0a 53 79 6e 74 61 78 3a |nded....|.Syntax:|
|000036f0| 0d 0a 25 53 77 69 74 63 | 68 28 3c 61 72 67 75 6d |..%Switc|h(<argum|
|00003700| 65 6e 74 3e 29 20 7b 0d | 0a 20 20 20 20 25 43 68 |ent>) {.|. %Ch|
|00003710| 6f 6f 73 65 28 3c 63 68 | 6f 69 63 65 20 31 3e 29 |oose(<ch|oice 1>)|
|00003720| 20 7b 3c 6d 61 63 72 6f | 20 63 6f 64 65 20 31 3e | {<macro| code 1>|
|00003730| 7d 0d 0a 20 20 20 20 25 | 43 68 6f 6f 73 65 28 3c |}.. %|Choose(<|
|00003740| 63 68 6f 69 63 65 20 32 | 3e 29 20 7b 3c 6d 61 63 |choice 2|>) {<mac|
|00003750| 72 6f 20 63 6f 64 65 20 | 32 3e 7d 0d 0a 20 20 20 |ro code |2>}.. |
|00003760| 20 20 20 20 20 3c 65 74 | 63 2e 2e 2e 3e 0d 0a 20 | <et|c...>.. |
|00003770| 20 20 20 25 44 65 66 61 | 75 6c 74 20 7b 3c 64 65 | %Defa|ult {<de|
|00003780| 66 61 75 6c 74 20 6d 61 | 63 72 6f 20 63 6f 64 65 |fault ma|cro code|
|00003790| 3e 7d 0d 0a 7d 0d 0a 00 | 25 53 77 69 74 63 68 20 |>}..}...|%Switch |
|000037a0| 28 29 20 7b 0d 0a 20 20 | 20 20 25 43 68 6f 6f 73 |() {.. | %Choos|
|000037b0| 65 28 29 20 7b 7d 0d 0a | 20 20 20 20 25 43 68 6f |e() {}..| %Cho|
|000037c0| 6f 73 65 28 29 20 7b 7d | 0d 0a 20 20 20 20 25 44 |ose() {}|.. %D|
|000037d0| 65 66 61 75 6c 74 20 7b | 7d 0d 0a 7d 00 44 61 74 |efault {|}..}.Dat|
|000037e0| 61 74 79 70 65 4e 61 6d | 65 00 83 00 25 44 61 74 |atypeNam|e...%Dat|
|000037f0| 61 74 79 70 65 4e 61 6d | 65 28 29 00 42 61 73 69 |atypeNam|e().Basi|
|00003800| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 44 61 74 61 |c Syntax|:..%Data|
|00003810| 74 79 70 65 4e 61 6d 65 | 28 29 0d 0a 00 25 44 61 |typeName|()...%Da|
|00003820| 74 61 74 79 70 65 4e 61 | 6d 65 28 29 00 44 61 74 |tatypeNa|me().Dat|
|00003830| 61 74 79 70 65 57 69 64 | 74 68 00 84 00 25 44 61 |atypeWid|th...%Da|
|00003840| 74 61 74 79 70 65 57 69 | 64 74 68 28 29 00 42 61 |tatypeWi|dth().Ba|
|00003850| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 44 61 |sic Synt|ax:..%Da|
|00003860| 74 61 74 79 70 65 57 69 | 64 74 68 28 29 0d 0a 00 |tatypeWi|dth()...|
|00003870| 25 44 61 74 61 74 79 70 | 65 57 69 64 74 68 28 29 |%Datatyp|eWidth()|
|00003880| 00 44 61 74 61 74 79 70 | 65 53 63 61 6c 65 00 85 |.Datatyp|eScale..|
|00003890| 00 25 44 61 74 61 74 79 | 70 65 53 63 61 6c 65 28 |.%Dataty|peScale(|
|000038a0| 29 00 42 61 73 69 63 20 | 53 79 6e 74 61 78 3a 0d |).Basic |Syntax:.|
|000038b0| 0a 25 44 61 74 61 74 79 | 70 65 53 63 61 6c 65 28 |.%Dataty|peScale(|
|000038c0| 29 0d 0a 00 25 44 61 74 | 61 74 79 70 65 53 63 61 |)...%Dat|atypeSca|
|000038d0| 6c 65 28 29 00 00 a5 00 | |le()....| |
+--------+-------------------------+-------------------------+--------+--------+